Thursday, May 14, 2009

Install Ruby 1.8.6 on Ubuntu with readline

When installing ruby 1.8 in Ubuntu 9.10. The specific version of ruby that is on the repository is 1.8.7. If you need version 1.8.6 then you will need to follow this:
  • install dev
sudo apt-get install gcc build-essential bison byacc gperf zlib1g-dev libreadline5 libreadline5-dev libncurses5 libncurses5-dev libssl-dev 
  • download rails 1.8.6:
ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.bz2
  • unpack it
  • install it
./configure
make
sudo make install

No comments:

Post a Comment