Sunday, 26 May 2019

Mac OS: Intl extension is not loaded

  • macOS Mojave 10.14.3
  • PHP 7.1.23
  • Prestashop 1.7.5.1

I tried to install PHP intl extension on my local server in order to use Prestashop.

I added extension=php_intl.so to etc/php.ini

When I try to install Prestashop I get Intl extension is not loaded.

$ php -m | grep intl

When I do $ php -m | grep intl, I get:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/pecl/20160303/php_intl.so' - d lopen(/usr/local/lib/php/pecl/20160303/php_intl.so, 9): image not found in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/pecl/20160303/php_intl.so' - dlopen (/usr/local/lib/php/pecl/20160303/php_intl.so, 9): image not found in Unknown on line 0 intl

It seems that the file php_intl.so doesn't exist.

$ sudo pecl install intl

I also tried $ sudo pecl install intland I get:

make: *** [php_intl.lo] Error 1 ERROR:make' failed`

$ curl -s http://php-osx.liip.ch/install.sh | bash -s 7.1

I also tried $ curl -s http://php-osx.liip.ch/install.sh | bash -s 7.1 and it doesn't create the intl.so file.


How can I solve this problem?



from Mac OS: Intl extension is not loaded

No comments:

Post a Comment