2016-10-24 7 views
0

私は数週間後にLaravelの作業に戻ります。私はそれにいくつかの問題を抱えていたので、私はdocumentationからの指示でそれを再インストールしました。Mac OS XでPHPアップデートエラーとLaravelインストールグローバル

まず、composer global "require laravel/installer"を実行しました。 私のディレクトリをローカルディレクトリ:Changed current directory to /Users/Mark/.composerに変更しました。

私はlaravel new appを走っ:

Crafting application... Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages. Problem 1 - This package requires php >=5.6.4 but your PHP version (5.5.27) does not satisfy that requirement.

私はcomposer updateを実行しようとしたが、それはどちらか実行されないでしょう。 PHPは5.6.4ではなく5.6.2しか利用できません。私はそれがbashプロファイルのためかもしれないと思うが、それがそれかどうか、またはそれを行う方法がわからない。

私のコンピュータを適切にセットアップするために、Laravelをグローバルにセットアップし、PHPをアップデートする方法を教えてください。

+0

あなたはどのOSをお使いですか? – user3158900

+0

タイトルが更新されました - Mac OS X –

答えて

0

私はこの壁に当たったとき、私はPHPドキュメントの指示に従っていました。私はPHPのHomebrewインストールから検索しました。彼らのdocumentationに従って私はそれを更新しました:

$ brew update 
$ brew upgrade 

Installation 

Setup the homebrew/dupes tap which has dependencies we need: 

$ brew tap homebrew/dupes 

Setup the homebrew/versions tap which has dependencies we need: 

$ brew tap homebrew/versions 

Then, run the following in your command-line: 

$ brew tap homebrew/homebrew-php 

$ brew install php70