views:

2495

answers:

6

Hey folks,

I just cannot install Ruby on my CentOS (which is also hosting a cPanel).

sudo yum install ruby ruby-devel ruby-irb ruby-rdoc ruby-ri


audit_log_user_command(): Connection refused

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

  • base: mirror.sov.uk.goscomb.net
  • updates: mirror.sov.uk.goscomb.net
  • addons: mirror.sov.uk.goscomb.net
  • extras: mirror.sov.uk.goscomb.net

base | 1.1 kB 00:00
updates | 951 B 00:00
addons | 951 B 00:00
extras | 1.1 kB 00:00

Excluding Packages in global exclude list

Finished

Setting up Install Process

Parsing package install arguments

No package ruby available.

No package ruby-devel available.

No package ruby-irb available.

No package ruby-rdoc available.

No package ruby-ri available.

Nothing to do


What can be the problem?

Thanks

+5  A: 

For Ruby 1.8.6 I had to add another repository.

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 install ruby

From www.centos.org forums.

Don't bother installing rubygems this way, it's obsolete.

Christian Lescuyer
yum --enablerepo=ruby install ruby
Jan Kronquist
A: 

That doesn't work.

root@bfhserver04 [/etc/yum.repos.d]# yum --enablerepo=ruby install ruby Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * rpmforge: ftp-stud.fht-esslingen.de * base: mirror.hmc.edu * updates: mirrors.adams.net * contrib: mc-builds.org * centosplus: mirrors.serveraxis.net * addons: mirror.rackspace.com * extras: mirror.raystedman.net ruby | 951 B 00:00
Excluding Packages in global exclude list Finished Setting up Install Process Parsing package install arguments No package ruby available. Nothing to do root@bfhserver04 [/etc/yum.repos.d]#

A: 

Am also getting this problem... did you find a solution? Cant find any solution online.

Steve
A: 

Only solution i found was to install everything manually

manual install guide

digid
A: 

me too same problem

nicky
A: 

CPanel/WHM puts the ruby packages the exclude list. If you verify your /etc/yum.conf file, you will probably see a line similar to:

exclude= (...) ruby* (...)

The recommended way to install ruby on a cPanel/WHM server is to run the script /scripts/installruby as root. Or you could remove ruby from the exclude list at your own risk.

More info at:

http://docs.cpanel.net/twiki/bin/view/AllDocumentation/RubyonRails/InstallingRuby

gdelfino