$ ruby -e "$(curl -fsS http://gist.github.com/raw/323731/install_homebrew.rb)" $ brew install git $ brew update これでbrewコマンドが使えるようになったので、下のFormula(パッケージの情報みたいなもの)を使ってPHPやMySQLなどをインストールする。 (Re)installing PHP 5.3 on Mac OS X — justin hileman dot info bobthecow’s gist: 85ad6dfb594d9215b42b — Gist 最近のMacだとデフォルトPHPとか入ってるけど、何かアップデートとか面倒そうなのでbrewを使ってインストールし直してる。 <div> <pre id="codeSnippet" class="csharpco
![Homebrewを使ってMacにPHP環境を構築する](https://cdn-ak-scissors.b.st-hatena.com/image/square/b26f7dc8f9e783316f720174980e93c627438d74/height=288;version=1;width=512/https%3A%2F%2Fefcl.info%2Fpublic%2Ffavicon.png)