Skip to content

Instantly share code, notes, and snippets.

@nixpulvis
Last active December 12, 2015 03:28
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 nixpulvis/4707544 to your computer and use it in GitHub Desktop.
Save nixpulvis/4707544 to your computer and use it in GitHub Desktop.
Entry point for an automated build on ubuntu.
# Get needed packages as root
sudo apt-get -q update
sudo apt-get install -qy 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 libgdbm-dev \
ncurses-dev automake libtool bison pkg-config libffi-dev
sudo apt-get install -qy libqt4-dev # for capybara-webkit
sudo apt-get install -qy libpq-dev # for pg
# Start at home
cd $HOME
# Install ruby 1.9.3
RUBY=ruby-1.9.3-p374 # must match ruby-lang.org file name
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/$RUBY.tar.gz
tar -xvzf $RUBY.tar.gz
cd $RUBY/
./configure --enable-shared --disable-install-doc
make
sudo make install
cd $HOME
rm -rf $RUBY $RUBY.tar.gz
echo "gem: --no-ri --no-rdoc" >> ~/.gemrc # no gems should install docs
sudo gem install bundler # install bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment