SUSE Conversations


Installing Ruby 1.9 on SLEx 10



By: hobbsc

April 16, 2010 11:25 am

Reads:702

Comments:0

Rating:0

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 http://www.ruby-lang.org/en/downloads/.

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.

make

Install the release as root:

sudo make install

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

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

Disclaimer: As with everything else at SUSE Conversations, 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.

Comment

RSS