我正在尝试在我的 10.6 Mac / PHP 5.4.14 上安装 Laravel4。我似乎要掉进兔子洞了。
在“composer install”之后 Laravel4 .. 命令行显示我需要 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.
..我以为我已经解决了这个 intl.so 问题..但似乎我安装了旧版本?
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 有点模糊。