Skip to content

Instantly share code, notes, and snippets.

@samurailink3
Last active December 15, 2015 19:29
Show Gist options
  • Save samurailink3/5311708 to your computer and use it in GitHub Desktop.
Save samurailink3/5311708 to your computer and use it in GitHub Desktop.
Debian Ruby on Rails (Ruby 1.9.3 - Rails 3.2.1) Developer Quick Launch - These files are used to quickly get a Debian system up an running after a clean install. Please run the script as a sudo user. You can remove the sudo access after the install. (Tested on Squeeze and Wheezy)
# Thanks to http://xyzpub.com/en/ruby-on-rails/3.2/rails3-install-debian.html
sudo apt-get -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion python
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm autolibs enable
rvm install 1.9.3
gem update
gem install rails --version '~> 3.2.1'
echo "source \$(rvm 1.9.3 do rvm env --path)" >> $HOME/.bashrc
echo "Complete (Ruby 1.9.3 - Rails 3.2.1)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment