[英]Symfony2 composer.phar install
Hi i want to install this bundle: 嗨,我想安装这个捆绑包:
https://packagist.org/packages/knplabs/knp-paginator-bundle https://packagist.org/packages/knplabs/knp-paginator-bundle
"knplabs/knp-paginator-bundle": "2.3.*@dev"
But i dont want to screw something with composer.phar update because last time it killed some bundles functions in FOS bundle when i remember right. 但是我不想用composer.phar update搞砸,因为上次我记得没错的时候,它杀死了FOS bundle中的某些bundles功能。
So i did only:: 所以我只做::
sudo php composer.phar install
But i got this error: 但是我得到了这个错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for symfony/framework-standard-edition 2.1.x-dev -> satisfiable by symfony/framework-standard-edition[2.1.x-dev].
- symfony/framework-standard-edition 2.1.x-dev requires knplabs/knp-paginator-bundle 2.3.*@dev -> no matching package found.
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.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
And these are my requirements for symfony and php. 这些是我对symfony和php的要求。 It should be enough right?
应该足够吧? What's the problem then please?
请问是什么问题?
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.1.*",
try "minimum-stability": "dev" 尝试“最小稳定性”:“开发”
see: http://getcomposer.org/doc/articles/troubleshooting.md 请参阅: http : //getcomposer.org/doc/articles/troubleshooting.md
add the following line in your composer and update composer 在您的作曲家中添加以下行并更新作曲家
"knplabs/knp-paginator-bundle": "dev-master" “ knplabs / knp-paginator-bundle”:“ dev-master”
I got the same. 我也一样 Then I tried to use php composer.phar update and it works.
然后,我尝试使用php composer.phar更新 ,它可以正常工作。
Hope this will help! 希望这会有所帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.