您好我的composer.json
中有以下依赖项"require": {
"gd": ">=2.0.28",
"ext-gd": "*"
}
当我做作曲家更新时,它会出现以下错误......
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package gd could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.**
但是我使用命令安装php-gd: sudo apt-get install php5-gd
还有什么别的办法让这个工作吗?
任何帮助都将不胜感激。
由于
答案 0 :(得分:1)
“gd”是没有已知的PHP库包名。如果要强制实施扩展,则必须仅使用“ext-gd”。
请注意,Composer建议不要对扩展实施版本,因为它们的版本架构可能不一致。见https://getcomposer.org/doc/02-libraries.md#platform-packages
答案 1 :(得分:0)
你可以尝试
$ composer global require&#34; fxp / composer-asset-plugin:1.0.1&#34;