Skip to content

Instantly share code, notes, and snippets.

@wesbillman
Created January 28, 2014 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wesbillman/8672903 to your computer and use it in GitHub Desktop.
Save wesbillman/8672903 to your computer and use it in GitHub Desktop.
lol setup
//install dependencies
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev
//install rbenv
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
rbenv install 1.9.2-p290
rbenv global 1.9.2-p290
ruby -v
//make gem installs quicker
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
//install mysql clients
sudo apt-get install mysql-server mysql-client libmysqlclient-dev
//finally, it's probably best if you can clone the current rails project into the new box at whatever location you want it to live. I should be able to take it from there.
Thanks!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment