Ubuntu 14.04 PHP PECL Oauth错误

Ran*_*all 4 php ubuntu oauth quickbooks-online

尝试将PHP应用程序与Quickbooks和Quickbooks SDK集成,它说它需要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
Run Code Online (Sandbox Code Playgroud)

我用Google搜索并更新了我的系统:

sudo apt-get install libpcre3 libpcre3-dev
sudo apt-get install php-pear php5-dev
Run Code Online (Sandbox Code Playgroud)

但那里没有运气.任何想法 - 对于Ubuntu来说这应该是一个简单的步骤.

Ran*_*all 17

sudo apt-get install php5-oauth
Run Code Online (Sandbox Code Playgroud)

  • 为php 7工作:sudo apt-get install php7.1-oauth (2认同)