Skip to content

Instantly share code, notes, and snippets.

@caok
Created December 6, 2013 14:14
Show Gist options
  • Save caok/7824607 to your computer and use it in GitHub Desktop.
Save caok/7824607 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Pre-requisites
sudo apt-get -y update
sudo apt-get -y install git-core curl autoconf automake openssl vim build-essential libc6-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev mysql-server libmysqlclient-dev ncurses-dev libtool bison libxslt1-dev libxml2-dev
# rbenv
curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
rbenv bootstrap-ubuntu-12-04
# install ruby
rbenv install 2.0.0-p353
rbenv global 2.0.0-p353
# install bundler and rake
gem update --system
gem install bundler rake
rbenv rehash
# config mysql
# mysql -h HOSTNAME -u USERNAME -p
# create database DATABASE_NAME default character set utf8;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment