【发布时间】:2023-08-08 15:54:01
【问题描述】:
我正在尝试下载 FOSUSERBundle , 当我执行这个 cmd 时:
php composer.phar require friendsofsymfony/user-bundle '~2.0@dev'
它给了我这个错误:
- symfony/icu v1.2.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- symfony/icu v1.2.2 requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- Installation request for symfony/icu == 1.2.2.0 -> satisfiable by symfony/icu[v1.2.2].
试图解决这个问题:
1 - 我通过取消注释这一行来编辑 /etc/php.ini :extension=php_intl.dll
2-我下载了最后一个稳定版本的php curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
问题仍然存在,当我执行 php -i 时,第一行是:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20100525/php_intl.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20100525/php_intl.dll, 9): image not found in Unknown on line 0
phpinfo()
有什么办法可以解决这个问题吗?或者在没有这个的情况下下载 FOSUSERBundle Syfony ?
【问题讨论】:
标签: php macos symfony fosuserbundle intl