XAMPP for Mac Lion 10.8上的php-intl安装 [英] Php-intl installation on XAMPP for Mac Lion 10.8

查看:90
本文介绍了XAMPP for Mac Lion 10.8上的php-intl安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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)

推荐答案

我刚刚在Terminal中运行了此

I just ran this in Terminal.

sudo pecl install intl

然后只需添加

extension=intl.so

php.ini.

这篇关于XAMPP for Mac Lion 10.8上的php-intl安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆