2015-04-17 298 views
0

我使用Ubuntu 14安裝pecl_http失敗

當我執行以下命令:

sudo pecl install pecl_http 

我有以下錯誤:

WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update 
downloading pecl_http-2.4.3.tgz ... 

Starting to download pecl_http-2.4.3.tgz (188,540 bytes) 
.........................................done: 188,540 bytes 
could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build-download/pecl_http-2.4.3.tgz" 
Download of "pecl/pecl_http" succeeded, but it is not a valid package archive 
Error: cannot download "pecl/pecl_http" 
downloading raphf-1.0.4.tgz ... 
Starting to download raphf-1.0.4.tgz (7,232 bytes) 
...done: 7,232 bytes 
could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build-download/raphf-1.0.4.tgz" 
Download of "pecl/raphf" succeeded, but it is not a valid package archive 
Error: cannot download "pecl/raphf" 
downloading propro-1.0.0.tgz ... 
Starting to download propro-1.0.0.tgz (6,217 bytes) 
...done: 6,217 bytes 
could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build-download/propro-1.0.0.tgz" 
Download of "pecl/propro" succeeded, but it is not a valid package archive 
Error: cannot download "pecl/propro" 
Download failed 
install failed 

你能幫助我嗎?

+0

運行sudo的PECL通道更新按警告幷包將正確地提取 – detheridge02

+0

但是,當我執行以下命令:sudo的PECL通道更新 我有以下錯誤:無法打開pecl_http – Zyo

+0

確定做下面的一個命令(Stackoverflow格式導致問題!) sudo pecl channel-update; sudo pecl install pecl_http – detheridge02

回答

0

解決此問題。 我的SE Ubuntu是32位的。 所以我在64位操作系統通過