我正在尝试在本地系统中安装Laravel,但遇到错误。
操作系统: ubuntu 12.04 LTS
Webserver : Nginx
PHP : PHP 5.3.10
步骤1:
$ git clone https://github.com/laravel/laravel.git my_projectstep2:
my_project$ composer 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
- 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.发布于 2014-06-06 15:29:31
打开composer.json文件并将框架版本更改为以下内容:
"laravel/framework": "4.0.*"而不是
"laravel/framework": "4.2.*"发布于 2014-11-03 17:46:20
您也可以通过将php升级到版本5.4.*或5.5.* :)来解决此问题。
发布于 2014-12-13 22:50:48
给那些刚开始使用Laravel的人的提示。我通过升级我的PHP解决了上面的问题。Laravel需要PHP >= 5.4 http://laravel.com/docs/4.2/installation#server-requirements
https://stackoverflow.com/questions/24076133
复制相似问题