为了账号安全,请及时绑定邮箱和手机立即绑定

PHP 警告:PHP 启动:无法加载动态库 'intl' 错误

PHP 警告:PHP 启动:无法加载动态库 'intl' 错误

PHP
繁星淼淼 2023-06-24 16:15:29
我正在尝试执行命令“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 0Warning: 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 0PHP Warning:  Module 'pdo_mysql' already loaded in Unknown on line 0Warning: Module 'pdo_mysql' already loaded in Unknown on line 0PHP 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 0PHP Warning:  Module 'pdo_mysql' already loaded in Unknown on line 0Warning: 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 0Warning: Module 'pdo_mysql' already loaded in Unknown on line 0Loading composer repositories with package informationInstalling dependencies (including require-dev) from lock fileYour 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=bz2extension=curlextension=fileinfoextension=gd2;extension=gettext;extension=gmpextension=intl;extension=imap;extension=interbase;extension=ldapextension=mbstring;extension=exif      ; Must be after mbstring as it depends on it;extension=mysqli;extension=oci8_12c  ; Use with Oracle Database 12c Instant Client
查看完整描述

2 回答

?
哈士奇WWW

TA贡献1799条经验 获得超6个赞

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

它适用于 Apache + PHP 8.0.0 x64 + intl


查看完整回答
反对 回复 2023-06-24
?
MM们

TA贡献1886条经验 获得超2个赞

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



查看完整回答
反对 回复 2023-06-24
?
阿波罗的战车

TA贡献1862条经验 获得超6个赞

我在 Windows 服务器上从 php7.4 迁移到 php8.1 时遇到了类似的问题。解决方案是在 PATH 环境变量中添加 php8 目录和 php8 ext 目录的路径。



查看完整回答
反对 回复 2023-06-24
  • 2 回答
  • 0 关注
  • 633 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信