Cannot install Ruby on CentOS

James picture James · Aug 28, 2009 · Viewed 14.5k times · Source

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

Answer

Marco picture Marco · Mar 6, 2011

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