作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在尝试在本地系统中安装 Laravel,但出现错误。
操作系统:ubuntu 12.04 LTS
网络服务器:Nginx
PHP:PHP 5.3.10
第一步:
$ git clone https://github.com/laravel/laravel.git my_project
第二步:
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.
最佳答案
打开您的 composer.json 文件并将框架版本更改为以下内容:
"laravel/framework": "4.0.*"
代替
"laravel/framework": "4.2.*"
关于php - 拉维尔 : Your requirements could not be resolved to an installable set of packages,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24076133/
我是一名优秀的程序员,十分优秀!