UPDATED: Jim Ruthorford in the comments of this post points out that ruby-1.8.2-5mdk.i586.rpm is no longer valid - it should now be ruby-1.8.2-6mdk.i586rpm. He also says that in order to get GEM to work, you need to install ruby-devel-1.8.2-6mdk.i586.rpm
Thanks for the update Jim.
*******************************************************************
Ruby 1.8.2 is available in the development repository of the forthcoming Mandrake 10.2 release. Unfortunately Mdk 10.1 has Ruby 1.8.1 which is no good for Ruby On Rails.
So, instead of moving to the unstable 10.2 release, here's what you can do to upgrade to Ruby 1.8.2
First off , you'll need the libgdbm3-1.8.3-2mdk.i586 package.
From the command line urpmi libgdbm should install it.
The Ruby 1.8.2 package has a dependency on the new version of libreadline, which you'll need to install.
The 10.2 rpms are:
libreadline5
ruby-1.8.2-5
If you have any ruby libraries installed you might want to go here to grab them.
Now cd to the directory where you downloaded the rpms to , and do this
urpmi libreadline5-5.0-2mdk.i586.rpm
urpmi ruby-1.8.3-2mdk.i586
after installing , just type ruby -v to confirm the version.
It should now say:
ruby 1.8.2 (2004-12-25) [i586-linux-gnu]
UPDATE:The Ruby Gems method of distributing Ruby libraries (similar principle to Debians apt-get or Mandrake's Urpmi) fails to work if you follow the instructions above. I've not found a workaround just yet.
Friday, April 22, 2005
Ruby 1.8.2 package on Mandrake 10.1 - updated
Posted by chunkybacon at 8:53 pm