Installing RubyGems on Mac OS X 10.3

I decided to install RubyGems and the Rails framework on my PowerBook so that I might follow along with ONLamp’s breathless Rolling with Ruby on Rails tutorial, but when I tried to complete the installation of RubyGems with the following statement in the Terminal:

% sudo ruby setup.rb install

It kept bombing out with the error

hook /Users/andy/Desktop/rubygems-0.8.4/./post-install.rb failed:
wrong # of arguments(2 for 1)

You know you’re in trouble when Google comes up with fewer than ten results for the exact error you’re researching.

However, given that OS X has a relatively old version of Ruby preinstalled (1.6.8), I suspected that might be the issue and gave the slightly newer Ruby package for Fink a try instead. (You do have Fink installed, don’t you?) The install went like a charm – just be sure to use the Fink executable, not the native OS X one:

% sudo /sw/bin/ruby setup.rb config
% sudo /sw/bin/ruby setup.rb setup
% sudo /sw/bin/ruby setup.rb install

Also

Syndicate content

Twitter

  • RT @Crell An obituary for an old friend: http://bit.ly/gNdVIl #Drupal #Git #CVS 3 years 18 weeks ago
  • (That is to say, in hook_views_data(). #views #drupal) 3 years 18 weeks ago
  • #drupal #views3 gurus: Is it possible to declare a relationship with an intederminate base table & field? (TBD by the handler?) 3 years 18 weeks ago
  • I wrote a module and someone else figured out how to use it to pull Webform data into #Drupal views. http://bit.ly/hGDGGi 3 years 24 weeks ago
  • RT @nquabbinlodge Meeting tonight in Athol MA! Work of the evening: confer the 3rdº on 1 candidate. Dinner at 6, lodge opens at 7. 3 years 29 weeks ago

Older

Contact

Andy Chase
(978) 297-6402
andychase [at] gmail.com
GPG/PGP Public Key