尝试设置UserVoice PHP SDK时,PHP扩展oauth丢失错误

尝试设置UserVoice PHP SDK时,PHP扩展oauth丢失错误,php,oauth,uservoice,Php,Oauth,Uservoice,我正在尝试使用Composer在本地计算机中设置UserVoice PHP SDK。我正在遵循在中指定的手册。我已经启用了oauth和mcrypt php扩展 composer.js文件包含以下内容: { "require": { "uservoice/uservoice": ">=0.0.6" } } 但当我尝试php composer.phar install命令时,终端中出现以下错误 Loading composer repositories with packag

我正在尝试使用Composer在本地计算机中设置UserVoice PHP SDK。我正在遵循在中指定的手册。我已经启用了oauth和mcrypt php扩展

composer.js文件包含以下内容:

{
  "require": {
    "uservoice/uservoice": ">=0.0.6"
  }
}
但当我尝试
php composer.phar install
命令时,终端中出现以下错误

Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - uservoice/uservoice 0.0.9 requires ext-oauth * -> the requested PHP extension oauth is missing from your system.
    - uservoice/uservoice 0.0.8 requires ext-oauth * -> the requested PHP extension oauth is missing from your system.
    - uservoice/uservoice 0.0.7 requires ext-oauth * -> the requested PHP extension oauth is missing from your system.
    - uservoice/uservoice 0.0.6 requires ext-oauth * -> the requested PHP extension oauth is missing from your system.
    - Installation request for uservoice/uservoice >=0.0.6 -> satisfiable by uservoice/uservoice[0.0.6, 0.0.7, 0.0.8, 0.0.9].
php.ini文件配置了扩展名。我已经尝试在安装这些扩展后重新启动apache服务器,但问题仍然存在


我在这里遗漏了什么?

如果你在Ubuntu上,你可以使用。将此PPA添加到系统后,可以使用
aptitude install php5 oauth
安装oauth扩展包

添加PPA的说明取决于您所使用的Ubuntu版本。对于12.04,您需要安装
python软件属性
,然后可以使用
添加apt存储库
命令