I installed the php-fann on my mac and i tried several ways to load the lib but all reuslts to the same issue:
[18-Feb-2020 17:32:14 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/MAMP/htdocs/OCRNN/Basic/FANN/php-fann/modules/fann.so' (tried: /Applications/MAMP/htdocs/OCRNN/Basic/FANN/php-fann/modules/fann.so (dlopen(/Applications/MAMP/htdocs/OCRNN/Basic/FANN/php-fann/modules/fann.so, 9): Library not loaded: libfann.2.dylib
Referenced from: /Applications/MAMP/htdocs/OCRNN/Basic/FANN/php-fann/modules/fann.so
Reason: unsafe use of relative rpath libfann.2.dylib in /Applications/MAMP/htdocs/OCRNN/Basic/FANN/php-fann/modules/fann.so with restricted binary), /Applications/MAMP/bin/php/php7.3.8/lib/php/extensions/no-debug-non-zts-20180731///Applications/MAMP/htdocs/OCRNN/Basic/FANN/php-fann/modules/fann.so.so (dlopen(/Applications/MAMP/bin/php/php7.3.8/lib/php/extensions/no-debug-non-zts-20180731///Applications/MAMP/htdocs/OCRNN/Basic/FANN/php-fann/modules/fann.so.so, 9): image not found)) in Unknown on line 0
When i try "make test" it gives me all good
=====================================================================
TEST RESULT SUMMARY
Hello,
I installed the php-fann on my mac and i tried several ways to load the lib but all reuslts to the same issue:
[18-Feb-2020 17:32:14 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/MAMP/htdocs/OCRNN/Basic/FANN/php-fann/modules/fann.so' (tried: /Applications/MAMP/htdocs/OCRNN/Basic/FANN/php-fann/modules/fann.so (dlopen(/Applications/MAMP/htdocs/OCRNN/Basic/FANN/php-fann/modules/fann.so, 9): Library not loaded: libfann.2.dylib Referenced from: /Applications/MAMP/htdocs/OCRNN/Basic/FANN/php-fann/modules/fann.so Reason: unsafe use of relative rpath libfann.2.dylib in /Applications/MAMP/htdocs/OCRNN/Basic/FANN/php-fann/modules/fann.so with restricted binary), /Applications/MAMP/bin/php/php7.3.8/lib/php/extensions/no-debug-non-zts-20180731///Applications/MAMP/htdocs/OCRNN/Basic/FANN/php-fann/modules/fann.so.so (dlopen(/Applications/MAMP/bin/php/php7.3.8/lib/php/extensions/no-debug-non-zts-20180731///Applications/MAMP/htdocs/OCRNN/Basic/FANN/php-fann/modules/fann.so.so, 9): image not found)) in Unknown on line 0
When i try "make test" it gives me all good
===================================================================== TEST RESULT SUMMARY
Exts skipped : 0 Exts tested : 65
Number of tests : 144 144 Tests skipped : 0 ( 0.0%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 0 ( 0.0%) ( 0.0%) Expected fail : 0 ( 0.0%) ( 0.0%) Tests passed : 144 (100.0%) (100.0%)
Time taken : 8 seconds
But i noticed the tests are made in a different php instance. I am trying it on the MAMP php. How do i do fix this on MAMP Application?