Skip to content
Tags

Install Ruby on CPanel

by admin on January 2nd, 2009

If you are using CPanel 11 (the latest version available at this time) you can easily install ruby on your system using CPanel. Previously, you had to do this using operating system packages or manually from sources. Now, we can just run /scripts/installruby and this will do everything for us:

  • download, compile and install ruby
  • download and install RubyGems and some gems like rails and mongrel

/scripts/installruby
At this time it will install the latest 1.8 ruby:
ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]

and the following gems (using rubygems-1.1.1):
gem list
actionmailer (2.1.0)
actionpack (2.1.0)
activerecord (2.1.0)
activeresource (2.1.0)
activesupport (2.1.0)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
fastthread (1.0.1)
gem_plugin (0.2.3)
mongrel (1.1.5)
rails (2.1.0)
rake (0.8.1)

This should be enough for running ruby scripts, but if you want to use Ruby On Rails from within CPanel then you just have to complete this by running /usr/local/cpanel/bin/ror_setup. If you are interested to deploy RoR environments on CPanel you can do this from inside CPanel. For more information check out the CPanel docs.

From → Cpanel, hosting

One Comment
  1. Mihai permalink

    Nice! I was looking for something like this in a long time. Installing ruby in CentOS it’s a pain. Thanks.

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS