I have been trying to enable mcrypt for two days in OS X. I read lots of document but I could not accomplish. Maybe it is because I am new in OS X environment.
The brief summary what I have done so far is;
I installed Xcode and installed Command Line Tools.
Downloaded and extracted libmcrypt-2.5.8 and php-5.3.15.
cd libmcrypt-2.5.8
./configure && make && sudo make install
The output of this is
Libraries have been installed in:
/usr/local/lib
and some other logs like
make[2]: Nothing to be done for `install-exec-am'.
The next step is;
cd php-5.3.15/ext/mcrypt
./configure && make && sudo make install
The output of this is
Installing shared extensions:
/usr/lib/php/extensions/no-debug-non-zts-20090626/
According to documents that I read, this means the installation is successful. After all these I opened /etc/php.ini
and wrote extension=mcrypt.so
. I restarted apache with sudo apachectl restart. But nothing happened. Mcrypt did not appear in php -m
.
I also tried to install mcrypt with sudo port install php-mcrypt +universal
but also this did not worked.
I saw another topic which is related to this problem and there was an answer which says that changing extension=mcrypt.so
with full path of mcrypt.so
. I tried and that is also not worked for me.
确保在您的php.ini中设置了“ extension_dir”属性,或者如果已经存在,请检查其是否未注释。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.