Skip to content

Instantly share code, notes, and snippets.

@tigawa
Created June 22, 2014 21:16
Show Gist options
  • Save tigawa/662b850e545a78fcc96f to your computer and use it in GitHub Desktop.
Save tigawa/662b850e545a78fcc96f to your computer and use it in GitHub Desktop.
#!/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