Help us understand the problem. What is going on with this article?

MacをPHP7へバージョンアップする

More than 3 years have passed since last update.

はじめに

なんとなく、MacのPHPをPHP7へとバージョンアップしたくなったのでしてみることにしました。

ちなみに、僕のMacはこんな感じ。

  • OS X Yosemite 10.10.5
  • PHP5.5.10

brewでいってみよう

ということで、下記コマンドを打っていけばイケます!

updateはどうでもいいかもです(`・ω・´)ゞ

$ brew update
$ brew install homebrew/php/php70
$ vim ~/.bashrc

で、PATH通してくれ、と言われるはずなので。

.bashrc
  export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH"

そして、よしなにしてあげれば。

$ source ~/.bashrc
$ php -v

PHP 7.0.7
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies

終わりに

エラー出るかなと思ったけど何もなかった。
おめでとう。

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away