laravelの最新版(v5.1.2)をインストールしようとしたら、PHP5.5.9以上とか言われた…。キツイ!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
composer create-project laravel/laravel ./ Installing laravel/laravel (v5.1.1) - Installing laravel/laravel (v5.1.1) Loading from cache Created project in ./ 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 - This package requires php >=5.5.9 but your PHP version (5.4.42) does not satisfy that requirement. Problem 2 - laravel/framework v5.1.2 requires php >=5.5.9 -> your PHP version (5.4.42) does not satisfy that requirement. - laravel/framework v5.1.1 requires php >=5.5.9 -> your PHP version (5.4.42) does not satisfy that requirement. - laravel/framework v5.1.0 requires php >=5.5.9 -> your PHP version (5.4.42) does not satisfy that requirement. - laravel/framework 5.1.x-dev requires php >=5.5.9 -> your PHP version (5.4.42) does not satisfy that requirement. - Installation request for laravel/framework 5.1.* -> satisfiable by laravel/framework[5.1.x-dev, v5.1.0, v5.1.1, v5.1.2]. |
composer create-project laravel/laravel ./ 5.0.*
ってやったら、5.0.22がダウンロードされてインストール完了!
composerは毎回ダウンロードして時間がかかるので、日本のミラーサイトに変更しておこう。
1 2 3 |
$ composer config -g repositories.packagist composer http://packagist.jp #本家に戻す $ composer config -g --unset repositories.packagist |