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.
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.
Update your composer.json file:
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
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
Execute:
apt install php7.0-intl
(replace php7.0 with your version e.g. 7.4)