Mac OS X Yosemite 10.10上带有Mamp Pro的Mcrypt

Mac OS X Yosemite 10.10上带有Mamp Pro的Mcrypt

问题描述:

昨天的优胜美地更新之后,Mcrypt扩展有些混乱. 基于PHP的 Laravel框架的artistan CLI 返回:

After the Yosemite update yesterday, something is messed up with the Mcrypt extension. The PHP based artistan CLI of the Laravel framework returns:

需要Mcrypt PHP扩展名.

Mcrypt PHP extension required.

PATH变量似乎是正确的.错误配置在哪里?在更新之前,一切正常.

The PATH variable seems to be correct. Where is the misconfig? Before the update everything worked fine.

++++配置++++

++++ Configs ++++

哪个php"的输出:

/Applications/MAMP/bin/php/php5.6.1/bin/php

/Applications/MAMP/bin/php/php5.6.1/bin/php

'php -v':

PHP 5.6.1(cli)(内置:2014年10月13日18:41:35)版权所有(c)1997-2014 PHP Group Zend Engine v2.6.0,版权所有(c)1998-2014 Zend 技术

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的内容:

Content of .bash_profile:

export EDITOR =纳米出口 路径=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin:/usr/local/mysql/bin 导出PATH =/Applications/MAMP/bin/php/php5.6.1/bin:$ PATH

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():

phpinfo():

MAMP PRO版本:

MAMP PRO Version:

3.0.7.1

3.0.7.1

更新:

Mamp-log指出php.ini中启用的每个扩展:

Mamp-log says for every extension enabled in php.ini:

PHP警告:PHP启动:无法加载动态库 '/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):在第0行的未知"中找不到图片

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支持小组联系,这就是他们的回应.

I've contacted MAMP support, and this is what they responded.

我们的php.ini文件被5.6.1弄乱了.转到您的模板文件并更改此行

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 ....

/Applications/MAMP/bin/php/php5.6.1 ....

/Applications/MAMP/bin/php/php5.6.1/lib/php/extensions/no-debug-non-zts-20131226

/Applications/MAMP/bin/php/php5.6.1/lib/php/extensions/no-debug-non-zts-20131226

几天后我们将有完整的修复.您也可以降级到PHP 5.5.同时.

We will have a full fix in a few days. You can also just downgrade to php 5.5. in the meantime.