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
At this time it will install the latest 1.8 ruby:
and the following gems (using rubygems-1.1.1):
1 2 3 4 5 6 7 8 9 10 11 12 13
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.