我正在嘗試執(zhí)行命令“composer install”命令。但出現(xiàn)此錯(cuò)誤: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”但它仍然給我錯(cuò)誤;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貢獻(xiàn)1799條經(jīng)驗(yàn) 獲得超6個(gè)贊
簡(jiǎn)單地將 icu*63.dll 或 icu*68.dll(對(duì)于 PHP 8)文件從 php 目錄復(fù)制到 apache24/bin
它適用于 Apache + PHP 8.0.0 x64 + intl

MM們
TA貢獻(xiàn)1886條經(jīng)驗(yàn) 獲得超2個(gè)贊

阿波羅的戰(zhàn)車
TA貢獻(xiàn)1862條經(jīng)驗(yàn) 獲得超6個(gè)贊
我在 Windows 服務(wù)器上從 php7.4 遷移到 php8.1 時(shí)遇到了類似的問題。解決方案是在 PATH 環(huán)境變量中添加 php8 目錄和 php8 ext 目錄的路徑。
- 2 回答
- 0 關(guān)注
- 770 瀏覽
添加回答
舉報(bào)
0/150
提交
取消