开发者

Where can I get a Ruby 1.8.6 for Centos OS

Can anyone tell me where I can find a Ruby 1.8.6 so I can istall it in my Centos 5 mac开发者_Go百科hine?

Thank you.


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


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


yum erase ruby ruby-libs
rpm -Uvh http://rbel.co/rbel5
yum install ruby

More info: http://rbel.frameos.org/


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.


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


"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


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


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


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


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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜