su compsci

(use password that I will give you in class)

sudo apt-get update

sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev 
sudo apt-get install libreadline-dev libyaml-dev libsqlite3-dev sqlite3
sudo apt-get install libxml2-dev libxslt1-dev libcurl4-openssl-dev
sudo apt-get install python-software-properties libffi-dev


exit

cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc

git clone git://github.com//sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-bu
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

rbenv install -v 2.2.1
rbenv global 2.2.1
ruby -v
echo "gem: --no-document" > ~/.gemrc

gem install bundler
gem install rails
rbenv rehash
rails -v


Last modified: Tuesday, October 6, 2015, 9:51 AM