- sudo apt-get install gcc libzlib-ruby libssl-dev libxslt-dev libxml2-dev libmemcached-dev libsasl2-dev libmemcached-dbg libpq-dev libcurl4-gnutls-dev libyaml-dev make
- wget LINK_TO_RUBY_TAR
- Find tar link here: http://www.ruby-lang.org/en/downloads/
- tar -zxvf rubyXXXX.tar.gz
- cd rubyXXXX
- ./configure
- make
- sudo make install
That's it, try running "ruby -v" to see the ruby version.
I recommend doing the following to enable SSL support (only takes a few seconds):
- cd ext/openssl
- ruby extconf.rb
- make
- sudo make install
And lastly, update the gem system:
- sudo gem update --system
great article. One comment thought would be regarding the lastly part. You might need to open a new terminal to see the changes
ReplyDelete