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

  • Comcast cable & Internet down in Winchendon MA, 3rd time this week. Gives one pause re: switching to their phone service. #fb 4 years 9 hours ago
  • I just became the mayor of Beals Memorial Library on @foursquare! http://4sq.com/bpXyNX 4 years 3 days ago
  • I just became the mayor of Winchendon Field Office on @foursquare! http://4sq.com/aUMCCT 4 years 6 days ago
  • Hay baled fresh off the field -- we live in an awesome place. http://flic.kr/p/8hZF6t 4 years 1 week ago
  • Just picking up hay, honestly! (@ Murdock Dairy Farm) http://4sq.com/b9yjcJ 4 years 1 week ago

Older

Contact

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