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:
  2. sudo apt-get update
    
    sudo apt-get install build-essential zlib1g zlib1g-dev libreadline5 libreadline5-dev libssl-dev
    
  3. Download the Ruby source code tar.gz file: http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
  4. 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
  5. A nice editor for Ruby is Komodo Edit.
© 1996-2011 by Ariel Ortiz (ariel.ortiz@itesm.mx)
Made with Django | Licensed under Creative Commons | Valid HTML5 | Valid CSS