在 XAMPP for Mac Lion 10.8 上安装 Php-intl

2022-01-14 00:00:00 xampp osx-lion php intl

大家好,我正在尝试在 xampp for mac 上安装 intl 库.我已经安装了 php 5.3,所以我只是将 intl.so 文件从 php 5.3 位置复制到 Xampp bin 文件夹.之后我取消注释 extension=intl.so 并重新启动服务器.我仍然没有在 phpinfo() 中看到 intl 更新(找不到错误类区域设置)

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)

推荐答案

我刚刚在终端中运行了这个.

I just ran this in Terminal.

sudo pecl install intl

然后添加

extension=intl.so

php.ini.

相关文章