FilamentF
Filament10mo ago
Matthew

PHP Startup: Unable to load dynamic library 'intl'

Full error: PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/lib/php/modules/intl (/usr/lib/php/modules/intl: cannot open shared object file: No such file or directory), /usr/lib/php/modules/intl.so (libicuio.so.75: cannot open shared object file: No such file or directory)) in Unknown on line 0
Im using Arch Linux, and after updating to php 8.4.x Im getting this error when using the intl extension. This is the same issue as in ❓┊helpintl extension is required but unlike that post Im not using WSL.

To begin with, the php-intl package has been replaced by php 8.4.x. So, when trying to install it, it will try to install php:
 ~  pacman -Qi php-intl
Installed From  : cachyos-v3
Name            : php
Version         : 8.4.3-2
Description     : A general-purpose scripting language that is especially suited to web development
Architecture    : x86_64_v3
URL             : https://www.php.net/
Licenses        : PHP-3.01
Groups          : None
Provides        : php-interpreter=8.4  php-intl=8.4.3
Depends On      : libxml2  curl  libzip  pcre2  argon2  oniguruma
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : php-intl
Replaces        : php-intl

From my understanding,the error tells me that php-intl requires icu v75, but I have version v76:
 ~  pacman -Qi icu
Installed From  : cachyos-core-v3
Name            : icu
Version         : 76.1-1.1
...

If I try downgrading to v75, Im blocked, as v76 is required by other apps:
error: failed to prepare transaction (could not satisfy dependencies)
:: installing icu (75.1-2) breaks dependency 'libicuuc.so=76-64' required by harfbuzz-icu
:: installing icu (75.1-2) breaks dependency 'libicuuc.so=76-64' required by raptor
:: installing icu (75.1-2) breaks dependency 'libicui18n.so=76-64' required by thunderbird
:: installing icu (75.1-2) breaks dependency 'libicuuc.so=76-64' required by thunderbird
Was this page helpful?