Reinstalling list of GEMs on a new server

#!/usr/bin/perl -w # We’re strict use strict; # Get list of installed gems my @gems = qx(gem list); chomp(@gems); # Create commands foreach my $gem (@gems) {     # Match gem and versions     $gem =~ m/(S+)s((.+))/i;     # Gem name     $gem = $1;     # Save them into array      my @gem_versions = split(/,/, $2);     # Print out commands […]

Install ruby 1.8.7 on debian lenny

sudo aptitude update sudo aptitude install build-essential sudo aptitude install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 libreadline-ruby1.8 libruby1.8 libopenssl-ruby sudo aptitude install libssl-dev libreadline5-dev zlib1g-dev sudo ln -s /usr/bin/ruby1.8 /usr/local/bin/ruby sudo ln -s /usr/bin/ri1.8 /usr/local/bin/ri sudo ln -s /usr/bin/rdoc1.8 /usr/local/bin/rdoc sudo ln -s /usr/bin/irb1.8 /usr/local/bin/irb tar xzvf ruby-1.8.7-p249.tar.gz cd ruby-1.8.7-p249 ./configure make sudo make install […]

Zlib buffer error on gem install

if gem update –system not works and rename ruby/bin/zlib1.dll to zlib.dll not helps try: Open file RUBY_DIRlibrubysite_ruby1.8rubygems.rb And replace existed def self.gunzip(data) by this: def self.gunzip(data) require ‘stringio’ require ‘zlib’ data = data # # skip the gzip header zis = is = end