Laravel : Your requirements could not be resolved to an installable set of packages

我是研究僧i 提交于 2019-12-21 17:25:03

问题


I am trying to install Laravel in local system and i am getting error.

OS : ubuntu 12.04 LTS

Webserver : Nginx

PHP : PHP 5.3.10

step 1 :

$ git clone https://github.com/laravel/laravel.git my_project

step2 :

my_project$ composer install

I am getting following error.

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
    - laravel/framework v4.2.1 requires php >=5.4.0 -> no matching package found.
    - laravel/framework v4.2.0 requires php >=5.4.0 -> no matching package found.
    - Installation request for laravel/framework 4.2.* -> satisfiable by laravel/framework[v4.2.0, v4.2.1].

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.

回答1:


Open your composer.json file and change framework version to the following:

"laravel/framework": "4.0.*"

instead of

"laravel/framework": "4.2.*"



回答2:


You can also solve this by upgrading your php to version 5.4.* or 5.5.* :)




回答3:


Tip for those starting out with Laravel. I solved the problem above by upgrading my PHP. Laravel requires PHP >= 5.4 http://laravel.com/docs/4.2/installation#server-requirements



来源:https://stackoverflow.com/questions/24076133/laravel-your-requirements-could-not-be-resolved-to-an-installable-set-of-packa

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!