Rails using Ruby that ships with RHEL 4


#1

Hi,

RHEL 4 ships with Ruby 1.8.1. I take it that won’t work with Rails
1.1.2?

Thanks,
Joe


#2

Hey Joe, I’m up2date 'ed to the latest and running successfully with

$ ruby -v
ruby 1.8.4 (2005-12-24) [x86_64-linux]

cheers,
Jodi


#3

Are you using RHEL 4? I don’t see ruby-1.8.4 in redhat’s ftp
directory
(ftp://ftp.redhat.com/pub/redhat/linux/updates/enterprise/4AS/en/os/SRPMS/).


#4

I have been using this on my Workstation 4 and RHEL 4.
I grabbed the Fedora Core 4 Source RPM and rebuilt it on RHEL 4.
I had to edit the SPEC file. I think I just removed X11-lib from the
dependencies. I think x11-libs package has just changed names. An xorg
thing.

One thing it depends on but is not in the dependencies was byacc.

rpm -i ruby…src.rpm
cd /usr/src/redhat/SPEC
edit ruby.spec, remove the x11-lib dependency
rpmbuild -ba ruby.spec

You might have to try it a number of time to get all the dependencies.

Blake


#5

RHEL 4 - Yes. Apologies, cause I thought I used up2date, but I
stuffed away this bookmark.

http://fatpenguinblog.com/?p=112

You’ll note it installs 1.8.3 - I used the same steps for 1.8.4

cheers,
J


#6

On Tue, 2006-04-25 at 12:19 -0700, Joe Van D. wrote:

Jodi

On 25-Apr-06, at 2:42 PM, Joe Van D. wrote:

Hi,

RHEL 4 ships with Ruby 1.8.1. I take it that won’t work with Rails
1.1.2?


http://dev.centos.org/centos/4/testing/

there you can find SRPMS that will work with RHEL or pre-built binaries
for any ‘channel’ including some that aren’t channels on RHEL…for
example, for i386

http://dev.centos.org/centos/4/testing/i386/RPMS/

Craig