Installing Ruby from Source Files
-
Update and install the required libraries. From the command line type:
sudo apt-get update
sudo apt-get install build-essential zlib1g zlib1g-dev libreadline5 libreadline5-dev libssl-dev
-
Download the Ruby source code tar.gz file:
http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
-
Execute these command from the command line:
tar xvzf ruby-1.9.2-p290.tar.gz
cd ruby-1.9.2-p290
./configure
make
sudo make install
-
A nice editor for Ruby is Komodo Edit.