梨包未解决

时间:2014-02-26 14:41:48

标签: php pear composer-php

突然之间,作曲家无法解决特定的梨包(net_gearman)。以前一切都没有任何问题。在我的开发人员计算机上,我没有收到任何错误,并且包安装成功,但在CI服务器上,我不断收到以下错误:

     [exec] Updating dependencies (including require-dev)
     [exec] Your requirements could not be resolved to an installable set of packages.
     [exec] 
     [exec]   Problem 1
     [exec]     - acsi/acsi-job dev-trunk requires pear-pear/net_gearman * -> no     matching package found.
     [exec] 
     [exec] Potential causes:
     [exec]  - A typo in the package name
     [exec]  - The package is not available in a stable-enough version according to your    minimum-stability setting
     [exec]    see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
     [exec] 
     [exec] Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

我的root composer.json定义了pear存储库:

{
    "repositories": [
        {
            "type": "pear",
            "url": "http://pear.php.net"
        }
    ]
}

另一个软件包需要Net_Gearman库:

{
    "require": {
        "pear-pear/Net_Gearman": "*",
        "pear-pear/PEAR": "*"
    }
}

我在干净的VCS结帐后运行composer命令,所以还没有供应商地图和composer.lock。我尝试过以下命令:

composer install --prefer-dist
composer install --prefer-source

两者都导致与上述相同的错误。 有人建议我如何解决这个问题吗?

1 个答案:

答案 0 :(得分:2)

这应该有效:

{
    "require": {
        "pear-pear.php.net/Net_Gearman": "*",
    }
}