- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我正在尝试启动并运行 Mozu PHP API,它依赖于 Composer 来获取所需的库。 Composer 不断失败的需求测试如下:
Composer 文件:
cat composer.json
{
"name" : "mozu/api",
"description" : "SDK for Mozu Rest APIs",
"type" : "library",
"homepage" : "https://developer.mozu.com/sdks",
"keywords" : [
"Mozu",
"API",
"SDK"
],
"license" : "MIT",
"require" : {
"guzzle/guzzle" : ">=3.7.3@stable",
"php" : ">=5.4"
},
"require-dev" : {
"phpunit/phpunit" : ">=3.7.28@stable"
},
"autoload" : {
"psr-0" : {
"Mozu" : "src/"
}
},
"extra": {
"branch-alias": {
"dev-master": "1.7.x-dev"
}
}
}
安装错误:
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
- The requested package php could not be found in any version, there may be a typo in the package name.
Problem 2
- The requested package php could not be found in any version, there may be a typo in the package name.
Problem 3
- guzzle/guzzle v3.9.2 requires php >=5.3.3 -> no matching package found.
- guzzle/guzzle v3.9.1 requires php >=5.3.3 -> no matching package found.
- guzzle/guzzle v3.9.0 requires php >=5.3.3 -> no matching package found.
- guzzle/guzzle v3.8.1 requires php >=5.3.3 -> no matching package found.
- guzzle/guzzle v3.8.0 requires php >=5.3.3 -> no matching package found.
- guzzle/guzzle v3.7.4 requires php >=5.3.3 -> no matching package found.
- guzzle/guzzle v3.7.3 requires php >=5.3.2 -> no matching package found.
- Installation request for guzzle/guzzle >=3.7.3@stable -> satisfiable by guzzle/guzzle[v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2].
PHP 版本:
php -v
PHP 5.3.10-1ubuntu3.13 with Suhosin-Patch (cli) (built: Jul 7 2014 18:52:09)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
PHP curl 版本:
apt-get install php5-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-curl is already the newest version.
Composer 版本:
php composer.phar self-update
You are already using composer version 1e27ff5e22df81e3cd0cd36e5fdd4a3c5a031f4a.
最佳答案
好的,将 "php": ">=5.4"的要求更改为 "php": ">=5.3"并且成功了!
不知道为什么它需要 php 的开发版本,但是哦,好吧!
关于PHP Composer "no matching package found"(魔族 PHP API),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25312614/
我正在尝试使用 JAXB 从 XSD 生成 java 类。 XSD 是我公司的官方 xsd,因此我无法仅为我的项目修改它们。在该网站上进行了数百次尝试和搜索后,我决定直接提出问题。 我的 XSD 中有
我已经了解了以下链接中的详细信息,但仍然存在何时使用哪个文件的问题?https://docs.npmjs.com/files/package-lock.json 最佳答案 包.json 包含项目的相关
当我在 centos 上运行命令 rpmbuild -bb mypackage.spec 时,出现错误 error: Package already exists: %package debuginf
my.packages 是 src 目录中的自定义原型(prototype)包。 Plone 实例中的数千个项目与其类型一起添加。我想将包重命名为 my.package。通过简单地卸载 my.pack
根据 javadoc 规范,我在相关包的根目录中放置了一个名为 package-info.html 的文档文件。但是,当我在该文件夹上运行 Doxygen 时,不会拾取该文件中的文档。我如何告诉 Do
我已经定义了如下的包: (defpackage :thehilariouspackageofamirteymuri (:nicknames ampack amir teymuri) (:use
我正在思考这个问题: > .packages() > (.packages()) [1] "stats" "graphics" "grDevices" "utils" "datase
我在内存中有一个 System.IO.Packaging.Package(它是一个 WordprocessingDocument)并且想将它流式传输到浏览器以保存它。 Word 文档已被基于 MVC
即使这是我不常发现的东西,在成员之前注释/* package*/的原因是什么? /* package */ final void attach(Context context) { atta
我正在开发我的应用程序,但在添加包以便导入它时,我总是收到此错误。 error: type 'Package.Dependency' has no member 'Package' 这是我的 Pack
install.packages("data.table") trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.
放置手动创建的插件的最佳位置是什么: a) C:\Users\{UserName}\AppData\Roaming\Sublime Text 3\Packages 或 b) C:\Users\{Use
这是一个有趣的 Perl 行为。 (至少对我来说 :) ) 我有两个包 PACKAGE1 和 PACKAGE2,它们导出具有相同名称的函数 Method1()。 由于将有如此多的包将导出相同的功能,使
package-archives (("marmalade" . "http://marmalade-repo.org/packages/") ("gnu" . "http://elpa.gnu.or
任何人都可以让我知道 package-lock.json 文件的确切用途吗? 尽管许多人提到它用于查看版本化依赖树。 寻找简单易行的解释。 提前致谢。 最佳答案 npm install使用此文件来确保
Python documentation说 Consider this code: import sound.effects.echo import sound.effects.surround fr
我在 ubuntu 上运行 VPS: Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 C
我有这样一个结构 $ tree -h . ├── [1.0K] myproj │ ├── [ 0] index.py │ ├── [ 0] __init__.py │ └──
我正在尝试解压 System.IO.Packaging.Package我从网络服务器收到的。也就是说,我正在使用 System.IO.Packaging.Package.Open(Stream)方法并
关于 package.json 文件中的@types 依赖项,我有一个愚蠢的问题: 在下面的 URL 中解释了应该安装的类型作为运行时依赖 npm install --save @types/loda
我是一名优秀的程序员,十分优秀!