You are here:   ArielOrtiz.com > Software Design and Architecture > Installing Ruby from Source Files

Installing Ruby from Source Files

  1. Update and install the required libraries. From the command line type:
    sudo apt-get update
    
    sudo apt-get install build-essential zlib1g zlib1g-dev libreadline6 \
    libreadline6-dev libssl-dev libyaml-dev sqlite3 libsqlite3-dev
    
  2. Download the Ruby source code tar.gz file: http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
  3. Execute these command from the command line:
    tar xvzf ruby-1.9.3-p125.tar.gz
    cd ruby-1.9.3-p125
    ./configure
    make
    sudo make install
  4. A nice editor for Ruby is Komodo Edit.