运行带有 MAMP 的 Composer:无法加载动态库 mcrypt.so
Running Composer with MAMP: Unable to load dynamic library mcrypt.so
我正在尝试在我的 Mac 上安装作曲家 运行ning 并使用 MAMP。我使用
安装了作曲家
sudo curl -sS https://getcomposer.org/installer | phpmamp
因此,在 .bash_profile 中,我添加了以下别名
alias phpmamp='/Applications/MAMP/bin/php/php5.5.14/bin/php'
安装后,我也把composer.phar移到了/usr/local/bin/composer
现在我尝试 运行 composer,但出现以下错误:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php53-mcrypt/5.3.26/mcrypt.so' - dlopen(/usr/local/Cellar/php53-mcrypt/5.3.26/mcrypt.so, 9): Library not loaded: /usr/local/lib/libmcrypt.4.4.8.dylib
Referenced from: /usr/local/Cellar/php53-mcrypt/5.3.26/mcrypt.so
Reason: image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php53-mcrypt/5.3.26/mcrypt.so' - dlopen(/usr/local/Cellar/php53-mcrypt/5.3.26/mcrypt.so, 9): Library not loaded: /usr/local/lib/libmcrypt.4.4.8.dylib
Referenced from: /usr/local/Cellar/php53-mcrypt/5.3.26/mcrypt.so
Reason: image not found in Unknown on line 0
??+?%
这是我的 php 版本信息:
PHP 5.5.14 (cli) (built: Jul 25 2014 17:02:08)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
我已经尝试将以下内容添加到我的 bash_profile 而没有 luck/difference:
PATH=/Applications/MAMP/bin/php/php5.5.17/bin:$PATH
您正在尝试将 PHP 5.3 库加载到 PHP 5.5 安装中。您需要安装 PHP 5.5 版本的 mcrypt。如果您使用 Homebrew 来管理您的 PHP 安装(您应该这样做),brew install php55-mcrypt
就可以了。
我正在尝试在我的 Mac 上安装作曲家 运行ning 并使用 MAMP。我使用
安装了作曲家sudo curl -sS https://getcomposer.org/installer | phpmamp
因此,在 .bash_profile 中,我添加了以下别名
alias phpmamp='/Applications/MAMP/bin/php/php5.5.14/bin/php'
安装后,我也把composer.phar移到了/usr/local/bin/composer
现在我尝试 运行 composer,但出现以下错误:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php53-mcrypt/5.3.26/mcrypt.so' - dlopen(/usr/local/Cellar/php53-mcrypt/5.3.26/mcrypt.so, 9): Library not loaded: /usr/local/lib/libmcrypt.4.4.8.dylib
Referenced from: /usr/local/Cellar/php53-mcrypt/5.3.26/mcrypt.so
Reason: image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php53-mcrypt/5.3.26/mcrypt.so' - dlopen(/usr/local/Cellar/php53-mcrypt/5.3.26/mcrypt.so, 9): Library not loaded: /usr/local/lib/libmcrypt.4.4.8.dylib
Referenced from: /usr/local/Cellar/php53-mcrypt/5.3.26/mcrypt.so
Reason: image not found in Unknown on line 0
??+?%
这是我的 php 版本信息:
PHP 5.5.14 (cli) (built: Jul 25 2014 17:02:08)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
我已经尝试将以下内容添加到我的 bash_profile 而没有 luck/difference:
PATH=/Applications/MAMP/bin/php/php5.5.17/bin:$PATH
您正在尝试将 PHP 5.3 库加载到 PHP 5.5 安装中。您需要安装 PHP 5.5 版本的 mcrypt。如果您使用 Homebrew 来管理您的 PHP 安装(您应该这样做),brew install php55-mcrypt
就可以了。