不能在debian上安装php的'intl'扩展名 [英] Can't get to install 'intl' extension for php on debian
问题描述
在安装过程中,它要求我:
指定在哪里ICU库和标题可以找到[DEFAULT]:
这里我一直在尝试几个选项,包括将其留空以使用DEFAULT,但是我收到以下错误:
配置:错误:C ++预处理器/ lib / cpp失败健康检查
有关详细信息,请参阅 config.log'。
/ tmp / pear / temp / intl / configure --with-icu-dir = DEFAULT'failed
错误:
已经安装了php5.3:make&&&安装。
我已经安装了icu,但与php5.3不同,它是安装apt-get(我不知道这是否重要)。
任何想法?
在Ubuntu 12.04 LTS上,以下内容适用于我:
sudo apt-get install php5-intl
sudo /etc/init.d/apache2 restart
Bam,警告不见了!希望这有助于将来的人:)
I have a debian server and I want to install the "intl" extension through pecl.
During the installation it asks me: "Specify where ICU libraries and headers can be found [DEFAULT] :" Here I've been trying several options, including leaving it empty to use DEFAULT, but I get the following error:
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See config.log' for more details.
ERROR:
/tmp/pear/temp/intl/configure --with-icu-dir=DEFAULT' failed
I've installed php5.3 with: make && make install. I have already installed "icu", but unlike php5.3, it was installed with apt-get (i don't know if this is important).
Any idea?
On Ubuntu 12.04 LTS, the following worked for me:
sudo apt-get install php5-intl
sudo /etc/init.d/apache2 restart
Bam, warning gone! Hope this helps somebody in the future :)
这篇关于不能在debian上安装php的'intl'扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!