Skip to content

Instantly share code, notes, and snippets.

@ryanzhou
Last active December 14, 2015 07:49

Revisions

  1. Zhou Tong revised this gist Mar 20, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ruby_install
    Original file line number Diff line number Diff line change
    @@ -18,4 +18,4 @@ echo "Installing Bundler..."
    gem install bundler

    echo "Adding deployer user..."
    adduser deployer --ingroup admin
    adduser deployer --ingroup sudo
  2. Zhou Tong created this gist Feb 28, 2013.
    21 changes: 21 additions & 0 deletions ruby_install
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    echo "Installing software packages..."
    apt-get -y update
    apt-get -y upgrade
    apt-get -y install build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl git-core openssh-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev libmysqlclient-dev

    echo "Downloading Ruby 2.0..."

    mkdir /tmp/ruby && cd /tmp/ruby
    curl --progress http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz | tar xz
    cd ruby-2.0.0-p0

    echo "Compiling Ruby 2.0..."
    ./configure
    make
    make install

    echo "Installing Bundler..."
    gem install bundler

    echo "Adding deployer user..."
    adduser deployer --ingroup admin