2

我正在尝试使用 Composer 在我的本地计算机中设置 UserVoice PHP SDK。我正在遵循https://developer.uservoice.com/docs/api/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 服务器,但问题仍然存在。

这里缺少什么?

4

1 回答 1

0

如果您使用的是 Ubuntu,则可以使用Ondrej Sury PHP PPA。将此 PPA 添加到您的系统后,您可以使用aptitude install php5-oauth.

添加 PPA 的说明取决于您使用的 Ubuntu 版本。对于 12.04,您需要安装python-software-properties,然后您可以使用add-apt-repository命令。

于 2014-09-19T13:25:11.847 回答