Php-intl installation on XAMPP for Mac Lion 10.8

感情迁移 提交于 2019-12-19 11:18:11

问题


Hi folks i am trying to install intl library on xampp for mac. I have installed php 5.3, so i just copied intl.so file from the php 5.3 location to Xampp bin folder. After that i uncommented extension=intl.so and restarted the server. Still i dont see intl updated in the phpinfo() (Getting error Class Locale not found)


回答1:


I just ran this in Terminal.

sudo pecl install intl

Then just add

extension=intl.so

to php.ini.




回答2:


For me this worked (php 7.1, MAMP, macOS Mojave):

Downloaded the intl.so file from https://github.com/skmedia/php-extensions-mamp/blob/master/php-5.4.4/intl.so and copy it to /usr/lib/php/extensions/no-debug-non-zts-20160303



来源:https://stackoverflow.com/questions/18391284/php-intl-installation-on-xampp-for-mac-lion-10-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!