phpbrew インストールメモ
phpbrewをDL https://github.com/phpbrew/phpbrew/blob/master/README.ja.md
TAPコマンドでPHPのFormulaをダウンロード
$ brew tap homebrew/php
homebrewでPHPインストール
$ brew install phpbrew
(インストールされた物、メモ)
==> Installing dependencies for homebrew/php/phpbrew: libpng, freetype, gettext, icu4c, jpeg, libxml2, unixodbc, readline, openssl, php71, curl, gmp, libevent, mhash, mcrypt, pcre, re2c
bash scriptを初期化
$ phpbrew init
bash_profileファイルを作る
$ touch .bash_profile
bash_profileファイルに追加
$ echo "source $HOME/.phpbrew/bashrc" >> ~/.bash_profile
インストール可能なバージョン
$ phpbrew known
インストール可能なライブラリ
$phpbrew variants
インストール(+default 付ける)
$phpbrew install php-7.1.1 +default
ヴァージョンの切り替え *デフォルト
$ phpbrew switch php-5.5.24
*一時的に
$ phpbrew use php-5.5.24
エラー。 足りないパッケージの追加 http://atuweb.net/201701_mac-install-phpbrew/
bashrcではなくbash_profile http://www.findxfine.com/programming/php/995561384.html
Try --with-libedit instead. http://www.karakaram.com/mac-phpbrew-php7