Skip to content

Instantly share code, notes, and snippets.

@pbosetti
Created December 17, 2011 13:42
Show Gist options
  • Save pbosetti/1490243 to your computer and use it in GitHub Desktop.
Save pbosetti/1490243 to your computer and use it in GitHub Desktop.
#!/bin/bash
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
echo
echo "Setting up environment"
echo "[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function" >> .bash_profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
echo
echo "Installing ruby"
rvm pkg install readline
rvm pkg install zlib
rvm install 1.9.3-p0 --with-readline-dir=$rvm_path/usr --with-zlib-dir=$rvm_path/usr
rvm use 1.9.3 --default
echo
echo "Installing gems"
gem install ffi ffi-opengl gnuplotr flotr mkrf ruby-opengl2 --no-rdoc --no-ri
echo
echo "Cloning RNC to Desktop"
cd ~/Desktop
git clone git://github.com/pbosetti/rnc.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment