Created
June 22, 2014 21:16
-
-
Save tigawa/662b850e545a78fcc96f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
#git インストール | |
sudo apt-get install -y git gitk git-gui | |
#rbenv本体のインストール | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
source ~/.bashrc | |
#ruby-buildインストール | |
mkdir -p ~/.rbenv/plugins/ | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
#ライブラリのインストール | |
sudo apt-get -y install libssl-dev zlib1g-dev libsqlite3-dev g++ | |
#1.9.3-p362をインストール | |
rbenv install 1.9.3-p362 | |
rbenv install 1.9.3-p194 | |
#デフォルト指定 | |
rbenv global 1.9.3-p362 | |
rbenv rehash | |
#rehashを省略するライブラリ | |
gem i rbenv-rehash | |
#bundleインストール | |
gem install bundler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment