【问题标题】:PHP Warning: PHP Startup: Unable to load dynamic library 'intl' errorPHP 警告:PHP 启动:无法加载动态库“intl”错误
【发布时间】: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


【解决方案1】:

如果您使用 PHP v7.3.2,则在此 link 中报告了有关加载动态库 intl 的错误。

【讨论】:

    【解决方案2】:

    简单地将 icu*63.dll 或 icu*68.dll(用于 PHP 8)文件从 php 目录复制到 apache24/bin

    它适用于 Apache + PHP 8.0.0 x64 + intl

    【讨论】:

      猜你喜欢
      • 2019-07-24
      • 2023-01-16
      • 2021-08-27
      相关资源
      最近更新 更多