THIS BLOG HAS MOVED TO blog.fearoffish.com

Macports and Ruby Gems 0.9.0

October 23rd, 2006

For those of you who get a fresh macports installation of Ruby Gems on Mac OS X, be aware that you'll be getting ruby gems 0.9.0, and it's broken. You will get this error message:

/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- sources (LoadError)
      from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'
      from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/remote_installer.rb:462:in `sources'
      from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/remote_installer.rb:472:in `source_index_hash'
      from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/remote_installer.rb:436:in `install'
      from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_commands.rb:258:in `execute'
      from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_commands.rb:220:in `each'
      from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_commands.rb:220:in `execute'
      from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/command.rb:69:in `invoke'
      from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/cmd_manager.rb:117:in `process_args'
      from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/cmd_manager.rb:88:in `run'
      from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_runner.rb:29:in `run'
      from /opt/local/bin/gem:23

The solution is simple, download the latest Ruby Gems from here, extract it and then run setup.rb. All should be fine then.

4 Responses to “Macports and Ruby Gems 0.9.0”

  1. Josh Knowles said on:

    Last I checked rb-mysql5 was broken too :-(

  2. Bernd said on:

    Looks like you saved my day. I'll leave a trackback to your site and republish this in my German blog. Thanks alot

  3. Rasmus said on:

    Thank you, your writeup really helped me !

  4. Laserwhit said on:

    I just had a similar problem with macports when I got rubygems 0.9.4. Is anyone fixing this? Just wondering.

Leave a Reply

Jamie van Dyke

Jamie van Dyke has been a Rails developer since the beginning of 2005, working with some of the major players in the web market. He also played a large part in the documenting of Rails for the Caboose Documentation Project and teaches others on his blog and in training sessions around the world. Jamie is a core Rails contributor, and the publisher of multiple gems and plugins.

I'm a father of 2, living in a little village called Skipton which is in North Yorkshire, England. Anything else you'd like to know you can ask. Check out my photo and info at the caboose facebook or my flickr page.

Jamie is also unsure why he must write a Bio in third person, and doesn't really have a fear of fish, he just dislikes the taste and smell of them.

< Recommend me on Working With Rails >

Search


Email:     


or    Subscribe in a Reader




 

Recommended Services

Basecamp project management and collaboration

Recommended Books