php – 在Mac OS X Yosemite 10.10上与Mamp Pro一起使用Mcrypt
作者:互联网
昨天优胜美地更新后,有些东西搞砸了Mcrypt扩展.
基于PHP的artistan CLI of the Laravel framework返回:
Mcrypt PHP extension required.
PATH变量似乎是正确的. misconfig在哪里?在更新之前一切正常.
CONFIGS
输出’哪个php’:
/Applications/MAMP/bin/php/php5.6.1/bin/php
‘php -v’:
PHP 5.6.1 (cli) (built: Oct 13 2014 18:41:35) Copyright (c) 1997-2014
The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend
Technologies
.bash_profile的内容:
export EDITOR=nano export
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin:/usr/local/mysql/bin
export PATH=/Applications/MAMP/bin/php/php5.6.1/bin:$PATH
phpinfo()函数:
MAMP PRO版本:
3.0.7.1
更新:
Mamp-log说明了php.ini中启用的每个扩展:
PHP Warning: PHP Startup: Unable to load dynamic library
‘/Applications/MAMP/bin/php/php5.6.1/lib/php/extensions/no-debug-non-zts-20121212/mcrypt.so’
– dlopen(/Applications/MAMP/bin/php/php5.6.1/lib/php/extensions/no-debug-non-zts-20121212/mcrypt.so,
9): image not found in Unknown on line 0
解决方法:
我已经联系过MAMP支持,这就是他们的回应.
Hi,
Our php.ini file is messed up for 5.6.1. Go to your template files and change this line
/Applications/MAMP/bin/php/php5.6.1 ….
to
/Applications/MAMP/bin/php/php5.6.1/lib/php/extensions/no-debug-non-zts-20131226
We will have a full fix in a few days. You can also just downgrade to php 5.5. in the meantime.
标签:php,osx-yosemite,laravel,mamp,macos 来源: https://codeday.me/bug/20190717/1490375.html