# Rails using Ruby that ships with RHEL 4

**URL:** <https://www.ruby-forum.com/t/rails-using-ruby-that-ships-with-rhel-4/58777>\
**Category:** Rails\
**Created:** [April 25, 2006, 8:43pm UTC](https://www.ruby-forum.com/t/rails-using-ruby-that-ships-with-rhel-4/58777 "2006-04-25T20:43:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [April 25, 2006, 8:43pm UTC](https://www.ruby-forum.com/t/rails-using-ruby-that-ships-with-rhel-4/58777/1 "2006-04-25T20:43:45Z")

</div>

Hi,

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

Thanks,  
Joe

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [April 25, 2006, 8:58pm UTC](https://www.ruby-forum.com/t/rails-using-ruby-that-ships-with-rhel-4/58777/2 "2006-04-25T20:58:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [April 25, 2006, 9:20pm UTC](https://www.ruby-forum.com/t/rails-using-ruby-that-ships-with-rhel-4/58777/3 "2006-04-25T21:20:42Z")

</div>

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/).

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [April 25, 2006, 9:30pm UTC](https://www.ruby-forum.com/t/rails-using-ruby-that-ships-with-rhel-4/58777/4 "2006-04-25T21:30:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [April 25, 2006, 9:45pm UTC](https://www.ruby-forum.com/t/rails-using-ruby-that-ships-with-rhel-4/58777/5 "2006-04-25T21:45:42Z")

</div>

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

[http://fatpenguinblog.com/?p=112](http://fatpenguinblog.com/?p=112)

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

cheers,  
J

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [April 26, 2006, 3:41am UTC](https://www.ruby-forum.com/t/rails-using-ruby-that-ships-with-rhel-4/58777/6 "2006-04-26T03:41:11Z")

</div>

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/](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/](http://dev.centos.org/centos/4/testing/i386/RPMS/)

Craig
