嘗試將PHP應用程序與Quickbooks和Quickbooks SDK集成,說它需要PECL Oauth。Ubuntu 14.04 PHP PECL Oauth錯誤
我有Ubuntu 14.04,當我嘗試安裝Oauth時出現此錯誤。
sudo pecl install oauth
downloading oauth-1.2.3.tgz ...
Starting to download oauth-1.2.3.tgz (45,531 bytes)
.............done: 45,531 bytes
could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build- download/oauth-1.2.3.tgz"
Download of "pecl/oauth" succeeded, but it is not a valid package archive
Error: cannot download "pecl/oauth"
Download failed
install failed
我Google了一下,更新了我的系統:
sudo apt-get install libpcre3 libpcre3-dev
sudo apt-get install php-pear php5-dev
,但沒有運氣。任何想法 - 這應該是Ubuntu的一個簡單步驟。
工作對我:)謝謝 – SangamAngre 2015-01-05 11:11:24
爲php 7工作:sudo apt-get install php7.1-oauth – vijay 2017-02-23 06:38:30
'sudo apt-get install php-oauth'會爲你選擇正確的版本。 – Juampy 2017-07-05 07:19:24