Upgrade to 1.8.4

S

Stuart Batty

I'm running Ubuntu 5.10 and currently have ruby 1.8.2 installed. I would
like to upgrade to 1.8.4 but there doesn't seem to be an available deb
package for 1.8.4. Can someone give me some pointers on upgrading using
the source? I don't want to have version collisions or have both
versions installed.

Thanks
 
P

Patrick Hurley

The big trick on Ubuntu is to make sure you have all the prerequisite
development packages installed before building ruby (i.e. zlib,
readline, etc). Without these you will get a version of ruby to build,
but it will be missing important libraries (without which gems among
many others will not work).

I had assumed this stuff would have been installed, but Ubuntu is
geared toward "normal" desktop users and not developers so these very
common development packages are not installed unless you go out and
get them first. After that ruby builds find and 1.8.4 works like a
champ. I uninstalled ruby (apt-get remove) before installing the newer
build, you could also set the prefix if you do not want it in
/usr/local.

Good luck
pth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top