Reputation: 101
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.
Upvotes: 10
Views: 16574
Reputation: 323
The yum repo at repo.premiumhelp.eu/ruby/ is DOA.
I found another CentOS-compatable yum repo at rubyworks.rubyforge.org/redhat/ with full instructions here. They explicitly support RHEL/CentOS 4 & 5, but not 6 (yet)
Upvotes: 0
Reputation: 111
yum erase ruby ruby-libs
rpm -Uvh http://rbel.co/rbel5
yum install ruby
More info: http://rbel.frameos.org/
Upvotes: 5
Reputation: 5587
The previous repos posted only had the i686 package, this is the repo I'm using for x86_64
[ruby]
name=ruby
baseurl=http://centos.karan.org/el5/misc/testing/x86_64/RPMS/
gpgcheck=0
enabled=0
Upvotes: 0
Reputation: 10889
Another option would be to install ruby with the RVM utility, which lets you easily switch between versions.
Note: On CentOS 5, at least, RVM compiles of Ruby barf because autoconf is too old. There are instructions for fixing this here
Upvotes: 1
Reputation: 7128
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
Upvotes: 6
Reputation: 223
"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
Upvotes: 1
Reputation: 30075
you can install ruby and all its dependencies including Gems withi this bash script
Upvotes: 0
Reputation: 45586
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
Upvotes: 12
Reputation: 3253
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
Upvotes: 1
Reputation: 28464
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.
Upvotes: 1