Last active
August 29, 2015 14:08
-
-
Save nyango/883eaaf6c17a105e99a0 to your computer and use it in GitHub Desktop.
CentOSにpyenvとrbenvをシステム全体にインストール ref: http://qiita.com/jamejammy/items/f227c259485fbd3c7c9c
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
sudo git clone git://github.com/yyuu/pyenv.git /usr/local/pyenv | |
sudo git clone git://github.com/yyuu/pyenv-virtualenv.git /usr/local/pyenv/plugins/pyenv-virtualenv |
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
exec $SHELL -l |
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
sudo git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
sudo git clone git://github.com/sstephenson/ruby-build.git /usr/local/rbenv/plugins/ruby-build |
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
exec $SHELL -l |
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
# インストール可能なバージョン一覧を出す | |
pyenv install -l | |
# 所定のバージョンをインストール(この場合3.4.2) | |
sudo -i pyenv install 3.4.2 | |
# 所定のバージョンがインストールされたことを確認 | |
pyenv versions | |
# 特定フォルダー以下でのみ使いたい場合 | |
cd /home/jibun/python3/ | |
pyenv local 3.4.2 | |
sudo -i pyenv rehash | |
# 全体に設定する場合 | |
pyenv global 3.4.2 | |
sudo -i pyenv rehash |
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
# インストール可能なバージョン一覧を出す | |
rbenv install -l | |
# 所定のバージョンをインストール(この場合2.1.3) | |
sudo -i rbenv install 2.1.3 | |
# 所定のバージョンがインストールされたことを確認 | |
rbenv versions | |
# 特定フォルダー以下でのみ使いたい場合 | |
cd /home/jibun/ruby2.1/ | |
rbenv local 2.1.3 | |
sudo -i rbenv rehash | |
# 全体に設定する場合 | |
rbenv global 2.1.3 | |
sudo -i rbenv rehash |
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
export PYENV_ROOT="/usr/local/pyenv" | |
export PATH="${PYENV_ROOT}/bin:${PATH}" | |
eval "$(pyenv init -)" |
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
export RBENV_ROOT="/usr/local/rbenv" | |
export PATH="${RBENV_ROOT}/bin:${PATH}" | |
eval "$(rbenv init -)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment