cancel
Showing results for 
Search instead for 
Did you mean: 

Missing PHP extension intl 2019

Missing PHP extension intl 2019

When i try to run composer install i get this error and have tried many different approaches. 

 

PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/intl.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/intl.so, 0x0009): closured error in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/intl.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/intl.so, 0x0009): closured error in Unknown on line 0

Do not run Composer as root/super user! See https://getcomposer.org/root for details

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.

5 REPLIES 5

Re: Missing PHP extension intl 2019

Well some servers use different php.ini for both browser and command line. It might be the case you don't have same PHP versions for both command line and browser. 

 

run php -m in terminal and see if the intl extension was installed for that version of PHP. If not install and check.

Re: Missing PHP extension intl 2019

Update your composer.json file:

"config": {
"preferred-install": "dist",
"sort-packages": true,
"platform": {
"php": "7.2",
"ext-intl": "0"
}
},

Re: Missing PHP extension intl 2019

Open your php.ini file

find

;extension=intl

remove semicolon to make it:

extension=intl

save

This worked for my php7.2 on macOS Catalina 10.15.2

Re: Missing PHP extension intl 2019

Please follow the below to resolve this

 

For solution you can follow below links.
https://www.devside.net/wamp-server/unable-to-load-or-find-php-extension-php_intl-dll


Let me know if any issues


If my answer is useful, please Accept as Solution & give Kudos

Re: Missing PHP extension intl 2019

Execute:

apt install php7.0-intl

(replace php7.0 with your version e.g. 7.4)