Skip to content

Instantly share code, notes, and snippets.

@chischaschos
Created May 23, 2012 15:32
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 chischaschos/2775924 to your computer and use it in GitHub Desktop.
Save chischaschos/2775924 to your computer and use it in GitHub Desktop.
#!/bin/bash
export LC_ALL="en_GB.UTF-8"
echo "Updating system"
apt-get update
echo "Installing base libraries"
apt-get install -y git-core zlib1g zlib1g-dev sqlite3 libsqlite3-dev ack exuberant-ctags curl openssl libssl-dev
echo "Installing Ruby step 1: Installing rbenv"
type rbenv > /dev/null 2>&1
if [ ! $? -eq 0 ]; then
cd ~
git clone https://github.com/sstephenson/rbenv ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec bash
fi
echo "Installing Ruby step 2: Installing ruby build"
type ruby-build > /dev/null 2>&1
if [ ! $? -eq 0 ]; then
git clone https://github.com/sstephenson/ruby-build
cd ruby-build
sudo ./install.sh
fi
echo "Installing Ruby step 3: Installing ruby 1.9.3-p194"
type ruby > /dev/null 2>&1
if [ ! $? -eq 0 ]; then
cd ~
rbenv install 1.9.3-p194
rbenv global 1.9.3-p194
fi
echo "Setting up vim with janus https://github.com/carlhuda/janus"
if [ -e ~/.vim ]; then
curl -Lo- http://bit.ly/janus-bootstrap | bash
fi
#echo "Installing base gems"
#gem install bundler rails sqlite3-ruby execjs therubyracer
#rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment