tags:

views:

3247

answers:

7

Hi. Can anyone tell me where I can find a Ruby 1.8.6 so I can istall it in my Centos 5 machine?

Thank you.

A: 
yum install ruby

If this will not install the Ruby for you, add appropriate repository to yum.

If the Ruby version in repositories is outdated, get the source, build, install by yourself.

Andrejs Cainikovs
+6  A: 

You probably want this:

"To use with yum, create /etc/yum.repos.d/ruby.repo and add the following:"

[ruby]
name=ruby
baseurl=http://repo.premiumhelp.eu/ruby/
gpgcheck=0
enabled=0

————————————————————————–

"Sample usage:"

yum --enablerepo=ruby list *RUBY*

Googleage: http://krnjevic.com/wp/?p=75

aronchick
Thanks, that worked for me. The 'sample usage' was not supported by my version of yum so I set enabled=1 in the .repo file.
Marnix van Valen
the "sample usage" should be --enablerepo (two hypens, not one).
kinjal
ack, thanks for the fix
aronchick
+1  A: 

RPM for CentOS 5.1, x86: http://repo.premiumhelp.eu/ruby/RPMS/ruby-1.8.6.111-1.i686.rpm

Failing that, the source code is available from the Ruby site, and you can compile and install it: ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz

Grandpa
+4  A: 

Download tarball with your version of Ruby from here

tar -xjvf ruby-1.8.6-pxxx.tar.bz2
cd ruby-1.8.6
./configure
make
make install

I had to do exactly what you are asking for, I just used version 1.8.7

Alexander Pogrebnyak
+1! The only one who has suggested the only standard method to install a GNU pakage!
Luca
A: 

you can install ruby and all its dependencies including Gems withi this bash script

solomongaby
That just installs whatever rpm Centos has, which is not the version the OP is looking for.
mpeters
+1  A: 

"To use with yum, create /etc/yum.repos.d/ruby.repo and add the following:"

[ruby] name=ruby baseurl=http://repo.premiumhelp.eu/ruby/ gpgcheck=0 enabled=0

Then: yum --enablerepo=ruby list RUBY

And: yum update ruby -y

A: 

A note to all others that come after me: If you want RoR with ruby-gems on a 64 bit CentOS installation: install from scratch. As of now, there are no good repos out there that work well, and installation from source is smooth. Just make sure you have gcc and make installed.

ezrock