没有适用于软件包"pecl.php.net/intl"的发行版. [英] No releases available for package "pecl.php.net/intl"
问题描述
我正在尝试为php安装intl.当我运行sudo pecl install intl
时,它给我一个错误No releases available for package "pecl.php.net/intl"
.我试图清除缓存,也尝试升级pear
和pecl
.没有.这是我的梨和PHP版本:
I'm trying to install intl for php. When I'm running sudo pecl install intl
it gives me an error No releases available for package "pecl.php.net/intl"
. I have tried to clear cache and also I tried to upgrade pear
and pecl
. Nothing. Here my pear and php versions:
PEAR Version: 1.9.4
PHP Version: 5.6.3
Zend Engine Version: 2.6.0
Running on: Darwin iMac-bvc.local 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep 1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64
PEAR Version: 1.9.4
PHP Version: 5.6.3
Zend Engine Version: 2.6.0
Running on: Darwin iMac-bvc.local 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep 1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64
有什么想法吗?预先感谢!
Any ideas? Thanks in advance!
推荐答案
要将其从未答复的列表中删除:
To get it off the unanswered list:
好,问题解决了!
如果无法通过pecl安装intl,则可以从pecl.php.net下载所需的软件包(在我的情况下是intl-3.0.0.tgz
).
If you can't install intl by pecl you can just download from pecl.php.net the package which you need (in my case it was intl-3.0.0.tgz
).
然后像这样通过pear安装它:
Then install it by pear like that:
$ sudo pear install intl-3.0.0.tgz
必须在php.ini
内添加extension="intl.so"
,然后重新启动apache.
After you have to add extension="intl.so"
inside php.ini
and then restart apache.
如果要检查是否已安装intl,则可以使用以下命令:
If you want to check whether intl has installed or not you can use this command:
$ php -m | grep intl
如果结果为国际,那么您做到了! =)
If result is intl then you did it! =)
这篇关于没有适用于软件包"pecl.php.net/intl"的发行版.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!