Installing Ruby 1.9 on SLEx 10

By: hobbsc

April 16, 2010 11:25 am





I’ve cross posted this on my personal blog and on openSUSE Lizards (modified for openSUSE 11.2). This is a pretty rudimentary post as installation from source is pretty straightforward, but perhaps it’ll be useful to someone.

The only requirements for this build that I’m aware of at this time are make, gcc, and the openssl/openssl-devel packages.

The default Ruby distribution in SLEx 10 is 1.8.7, contrasting the current stable release of 1.9.1. If you already have Ruby installed via zypper, you’ll need to uninstall it (‘sudo zypper rm ruby’), otherwise the first step is to grab the latest release from

Next, unpack your release (replacing 1.9.1-p376 with the build you downloaded):

tar xfvz ruby-?1.9.1-p376.tar.gz

Change to the extracted directory and run the config script:

cd ruby-1.9.1-p376 && ./configure

Build the release: Note that you can allow jobs to run simultaneously with the -j switch, see make (1) for further details.


Install the release as root:

sudo make install

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Tags: ,
Categories: openSUSE, SUSE Linux Enterprise Desktop, Technical Solutions

Disclaimer: As with everything else in the SUSE Blog, this content is definitely not supported by SUSE (so don't even think of calling Support if you try something and it blows up).  It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.