Created
March 31, 2012 03:30
-
-
Save calpo/2258979 to your computer and use it in GitHub Desktop.
phpenvインストール
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 各ポイントで 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