Created
November 29, 2013 16:21
-
-
Save rossta/7708138 to your computer and use it in GitHub Desktop.
Bootstrap ruby on remote server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| RUBY_VERSION=ruby-2.0.0-p247 | |
| apt-get -y update | |
| apt-get -y install build-essential libyaml-dev zlib1g-dev openssl libssl-dev libreadline-gplv2-dev | |
| cd /tmp | |
| wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/$RUBY_VERSION.tar.gz | |
| tar -xvzf $RUBY_VERSION.tar.gz | |
| cd $RUBY_VERSION/ | |
| sudo ./configure --prefix=/usr/local | |
| sudo make | |
| sudo make install | |
| gem install ruby-shadow --no-ri --no-rdoc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment