Skip to content

Instantly share code, notes, and snippets.

@calpo
Created March 31, 2012 03:30
Show Gist options
  • Save calpo/2258979 to your computer and use it in GitHub Desktop.
Save calpo/2258979 to your computer and use it in GitHub Desktop.
phpenvインストール
# 各ポイントで source .bashrc ではなく、ログインしなおす必要がある (PATHが追加追加でなんかうまくいかない)
cd
curl https://raw.github.com/CHH/phpenv/master/bin/phpenv-install.sh | sh
vi ~/.bashrc_local
# 追加
#phpenv
export PATH="$HOME/.phpenv/bin:$PATH"
eval "$(phpenv init -)"
cd local/src/
git clone https://github.com/CHH/php-build.git
cd php-build/
./install.sh
#/usr/local配下に入る
cd
php-build --definitions
mkdir /Users/calpo/.phpenv/versions
php-build 5.4.0 /Users/calpo/.phpenv/versions/5.4.0
php-build 5.3.9 /Users/calpo/.phpenv/versions/5.3.9
phpenv versions
phpenv global 5.4.0
phpenv versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment