【发布时间】:2020-10-12 06:53:09
【问题描述】:
我正在尝试执行命令“composer install”命令。但收到此错误:
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: ./ext/intl (The specified module could not be found.), ./ext/php_intl.dll (The specified module could not be found.)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: ./ext/intl (The specified module could not be found.), ./ext/php_intl.dll (The specified module could not be found.)) in Unknown on line 0
PHP Warning: Module 'pdo_mysql' already loaded in Unknown on line 0
Warning: Module 'pdo_mysql' already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: ./ext/intl (The specified module could not be found.), ./ext/php_intl.dll (The specified module could not be found.)) in Unknown on line 0
PHP Warning: Module 'pdo_mysql' already loaded in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: ./ext/intl (The specified module could not be found.), ./ext/php_intl.dll (The specified module could not be found.)) in Unknown on line 0
Warning: Module 'pdo_mysql' already loaded in Unknown on line 0
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested PHP extension ext-intl * is missing from your system. Install or enable PHP's intl extension.
这是我的 php ini 文件。我删除了 ”;”来自“extension=intl”,但它仍然给我错误
;extension=bz2
extension=curl
extension=fileinfo
extension=gd2
;extension=gettext
;extension=gmp
extension=intl
;extension=imap
;extension=interbase
;extension=ldap
extension=mbstring
;extension=exif ; Must be after mbstring as it depends on it
;extension=mysqli
;extension=oci8_12c ; Use with Oracle Database 12c Instant Client
;extension=odbc
extension=openssl
;extension=pdo_firebird
;extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
;extension=pdo_pgsql
;extension=pdo_sqlite
;extension=pgsql
;extension=shmop
【问题讨论】:
-
你安装那个扩展了吗?只需更改配置文件不会安装它。此外,此问题与 Laravel 或 Composer 无关 - 请不要使用不相关的标签,如果有,请说明连接
-
@NicoHaase 它存在于“ext”文件夹中
-
你是怎么安装的?请分享有关您的设置的更多详细信息
标签: php composer-php php-ini