How to install capistrano on Centos 5

centos capistrano

We have had some problems installing capistrano on our centos 5 virtual machines. As I've noted before, centos is a bit slow on getting new version of packages up in the repo, so this recipe installs and older version of the ruby gems package.

Capistrano is the awesome 'deployment', server remote controller and kick-ass thing making it totally worth installing ruby for.

sudo yum install -y ruby
sudo yum install -y ruby-devel ruby-docs ruby-ri ruby-irb ruby-rdoc
sudo wget http://production.cf.rubygems.org/rubygems/rubygems-1.4.1.tgz
sudo tar xvzf rubygems-1.4.1.tgz
cd rubygems-1.4.1
sudo ruby setup.rb
sudo gem install capistrano