I have successfully installed mcrypt via homebrew , but I am trying to find the path to mcrypt.so to enable it as an extension in php.ini .
mcrypt was installed in /usr/local/Cellar/mcrypt/2.5.8 . Wood:
-- AUTHORS |-- ChangeLog |-- INSTALL_RECEIPT.json |-- NEWS |-- README |-- TODO |-- bin | `-- libmcrypt-config |-- include | |-- mcrypt.h | `-- mutils | `-- mcrypt.h |-- lib | |-- libmcrypt.4.4.8.dylib | |-- libmcrypt.4.dylib -> libmcrypt.4.4.8.dylib | `-- libmcrypt.dylib -> libmcrypt.4.4.8.dylib `-- share |-- aclocal | `-- libmcrypt.m4 `-- man `-- man3 `-- mcrypt.3
I tried to include mcrypt.h in php.ini :
extension="/usr/local/Cellar/mcrypt/2.5.8/include/mcrypt.h"
and then restarted apache. but it didn’t work.
when i run php in terminal i get:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/mcrypt/2.5.8/include/mcrypt.h' - dlopen(/usr/local/Cellar/mcrypt/2.5.8/include/mcrypt.h, 9): image not found in Unknown on line 0
php mcrypt
Matanya Jan 16 '13 at 11:16 2013-01-16 11:16
source share