Ruby on Shared Accelerators
Introduction
This page is a guide to creating and deploying scripts and applications developed in the Ruby programming language on Shared Accelerators.
If you're new to Ruby, or want a general introduction to developing and deploying Ruby scripts and applications, start off by reading the Ruby Overview in the All Accelerators Knowledge Base.
Version
We are providing Ruby version 1.8.6 on Shared Accelerators.
RubyGems
abstract actionmailer actionpack activemerchant activerecord activeresource activesupport BlueCloth builder camping capistrano cgi_multipart_eof_fix columnize daemons datamapper diff-lcs erubis eventmachine extensions fast_xs fastthread fcgi ferret filesystem flexmock gem_plugin gettext gruff haml heckle highline hoe hpricot innate json json_pure linecache locale lockfile log4r logging mailfactory markaby merb merb-action-args merb-assets merb-builder merb-cache merb-core merb-gen merb-haml merb-mailer merb-more merb-parts merb_activerecord merb_datamapper merb_has_flash merb_helpers merb_param_protection merb_sequel merb_stories merbful_authentication metaid mime-types mini_magick mongrel mongrel_cluster mongrel_config mongrel_console mongrel_upload_progress needle needle-extras net-scp net-sftp net-ssh net-ssh-gateway nokogiri ParseTree postgres postgres-pr rack rails rake ramaze rcov rdiscount RedCloth rfuzz rmagick rspec rubigen ruby-debug ruby-debug-base ruby-json ruby-openid ruby-yadis ruby2ruby rubyforge RubyInline sequel sequel_core sexp_processor sqlite3-ruby syntax thin tzinfo validatable ZenTest
Some other Ruby related packages installed via the packaging system, but not appearing in 'gem list':
curses eruby gdbm mysql rdtool readline ruby-gsl subversion tk
Installing custom gems
Create some directories:
mkdir /users/home/username/gems mkdir /users/home/username/gems/bin
In your ~/.bash_profile you want to add the following lines (change the username as to your username)
GEM_HOME=/users/home/username/gems GEM_PATH=/users/home/username/gems:/usr/local/lib/ruby/gems/1.8 export GEM_HOME GEM_PATH
Load the updated .bash_profile with the following command:
source ~/.bash_profile
Create a .gemrc file with the following content:
gemhome: /users/home/username/gems gempath: - /users/home/username/gems - /usr/local/lib/ruby/gems/1.8
Then install the latest version of rack into your local repo:
gem install rack
