Skip to content

Instantly share code, notes, and snippets.

@noboo
Created July 27, 2019 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noboo/dff73235d96abc2a57688eafcd320755 to your computer and use it in GitHub Desktop.
Save noboo/dff73235d96abc2a57688eafcd320755 to your computer and use it in GitHub Desktop.
phpbrew インストールメモ

phpbrew

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment