bukka / php-fann

PHP wrapper for FANN (Fast Artificial Neural Network Library)
Other
213 stars 35 forks source link

Installation (Extention) + subsequent testing error #34

Open CryptoLisboa opened 6 years ago

CryptoLisboa commented 6 years ago

Hi, Im using a MAC OS 10.13 where I have xampp installed. To try get fann working with php I have followed your installation guide step by step from https://github.com/bukka/php-fann without problems up to the "make". I also did the make test to ensure all was right up to there. However afterwards I am getting the following error:

" sudo make install /bin/sh /Applications/XAMPP/xamppfiles/etc/php-fann/libtool --mode=install cp ./fann.la /Applications/XAMPP/xamppfiles/etc/php-fann/modules cp ./.libs/fann.so /Applications/XAMPP/xamppfiles/etc/php-fann/modules/fann.so cp ./.libs/fann.lai /Applications/XAMPP/xamppfiles/etc/php-fann/modules/fann.la

Libraries have been installed in: /Applications/XAMPP/xamppfiles/etc/php-fann/modules

If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following:

See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages.

Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20160303/ cp: /usr/lib/php/extensions/no-debug-non-zts-20160303/#INST@24498#: Operation not permitted make: *** [install-modules] Error 1 "

Moreover if I do try to proceed with the error I get this from php:

" Fatal error: Call to undefined function fann_create_standard() in /Applications/XAMPP/xamppfiles/htdocs/ann_teste/simple_train.php on line 10 "