我试图在我的10.6 Mac/PHP 5.4.14上安装Laravel4。我好像掉进了一个兔子洞。
在"composer install"之后…命令行显示我需要Mcrypt PHP扩展。所以我试着安装它,我被告知我必须安装Mhash。所以我安装了Mhash ..然后回去安装Mcrypt
extension = mcrypt.so
Libraries have been installed in:
/Users/****/downloads/php-5.4.14/ext/mcrypt/modules
然后我回去安装Laravel 4,现在我显示这个
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20100525/intl.so' - dlopen(/opt/local/lib/php/extensions/no-debug-non-zts-20100525/intl.so, 9): image not found in Unknown on line 0
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating autoload files
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20100525/intl.so' - dlopen(/opt/local/lib/php/extensions/no-debug-non-zts-20100525/intl.so, 9): image not found in Unknown on line 0
Laravel requires the Mcrypt PHP extension.
. .我以为我已经解决了这个问题。所以问题…但我好像安装了旧版本?
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
Laravel requires the Mcrypt PHP extension.
所以谁能给我一点观点,并指出我在正确的方向?我对编译PHP有点模糊
您的命令行可能使用了不同版本的PHP。您必须更新.bash_profile文件中的路径变量,以指向正确的PHP版本。
如何安装PHP?
我想你安装的5.4版本和OS x自带的5.3版本搞混了。