Downgrade ruby from 1.8.7 to 1.8.6 under debian

downgrade ruby from 1.8.7 to 1.8.6

http://snapshot.debian.net/archive/2008/03/22/debian/pool/main/r/ruby1.8/

download follow package and dpkg -i install all debian package

irb1.8_1.8.6.114-2_all.deb
libopenssl-ruby1.8_1.8.6.114-2_i386.deb
libreadline-ruby1.8_1.8.6.114-2_i386.deb
libruby1.8_1.8.6.114-2_i386.deb
rdoc1.8_1.8.6.114-2_all.deb
ri1.8_1.8.6.114-2_all.deb
ruby1.8_1.8.6.114-2_i386.deb
ruby1.8-dev_1.8.6.114-2_i386.deb

Warning, replace “i386.deb” to your arc like “amd64.deb” or other

finally
look
http://dev.hubiquity.fr/2008/6/3/avoid-rails-troubles-with-ruby-1-8-7-under-debian

you will need to add these few lines into your /etc/apt/preferences to
hole your ruby version:

Package: ruby1.8 irb1.8 rdoc1.8 ri1.8 libruby1.8 libreadline-ruby1.8
libopenssl-ruby1.8 ruby1.8-dev
Pin: version 1.8.6*
Pin-Priority: 1001

I have found many advices howto downgrade Ruby 1.8.7 to 1.8.6 as
recommended by Rails core team.
You can found the article
http://railsgeek.com/2008/11/27/ubuntu-8-10-downgrade-ruby-1-8-7-to-1-8-6

ChandleWEi wrote:

downgrade ruby from 1.8.7 to 1.8.6

http://snapshot.debian.net/archive/2008/03/22/debian/pool/main/r/ruby1.8/

download follow package and dpkg -i install all debian package

irb1.8_1.8.6.114-2_all.deb
libopenssl-ruby1.8_1.8.6.114-2_i386.deb
libreadline-ruby1.8_1.8.6.114-2_i386.deb
libruby1.8_1.8.6.114-2_i386.deb
rdoc1.8_1.8.6.114-2_all.deb
ri1.8_1.8.6.114-2_all.deb
ruby1.8_1.8.6.114-2_i386.deb
ruby1.8-dev_1.8.6.114-2_i386.deb

Warning, replace “i386.deb” to your arc like “amd64.deb” or other

finally
look
http://dev.hubiquity.fr/2008/6/3/avoid-rails-troubles-with-ruby-1-8-7-under-debian

you will need to add these few lines into your /etc/apt/preferences to
hole your ruby version:

Package: ruby1.8 irb1.8 rdoc1.8 ri1.8 libruby1.8 libreadline-ruby1.8
libopenssl-ruby1.8 ruby1.8-dev
Pin: version 1.8.6*
Pin-Priority: 1001

ChangleWEi, Thank you for taking time to post this. Solved all kinds of
problems for me.