Skip to content

Having Trouble Updating to Latest RubyGems on the Mac? Try This.

2008 November 8
by Rob Bazinet

I wanted to install the official release of Merb 1.0 but found I needed to have RubyGems 1.3 installed to do so, no big deal right? Well, on my MacBook Pro running 10.5, I found running the usual command to update RubyGems:

$ sudo gem update –system

Gave me the following:

Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.3.0
ERROR: While executing gem … (NameError)
undefined local variable or method `remote_gemspecs’ for #
$ gem –version
1.2.0

Thinking I had typed something wrong because updating RubyGems always works, I tried again only to see this:

$ sudo gem update –system
Updating RubyGems
Nothing to update
$ gem –version
1.2.0

A bit of searching around the web I found a blog with a post matching my exact problem with a solution that worked perfectly from Wincent.com. I then proceeded to install Merb and now have Merb 1.0 installed.

Technorati Tags: ,

  • kewin

    D:\Ruby\ruby\bin>gem update --system


    Updating RubyGems


    Nothing to update


    D:\Ruby\ruby\bin>gem update


    Updating installed gems


    Updating ruby-opengl


    Building native extensions. This could take a while...


    ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)


    ERROR: Failed to build gem native extension.


    rake RUBYARCHDIR=D:/Ruby/ruby/lib/ruby/gems/1.8/gems/ruby-opengl-0.60.1/lib RUBY


    LIBDIR=D:/Ruby/ruby/lib/ruby/gems/1.8/gems/ruby-opengl-0.60.1/lib


    ruby mkrf_conf.rb


    (in D:/Ruby/ruby/lib/ruby/gems/1.8/gems/ruby-opengl-0.60.1)


    call rake --nosearch


    cl -nologo -MD -Zi -O2b2xg- -G6 -DWIN32 -DRUBY_VERSION=186 -ID:/Ruby/ruby/inc


    lude -ID:/Ruby/ruby/lib/ruby/1.8/i386-mswin32 -ID:/Ruby/ruby/lib/ruby/site_ruby/


    1.8 -I. -c gl-1.0-1.1.c


    (in D:/Ruby/ruby/lib/ruby/gems/1.8/gems/ruby-opengl-0.60.1/ext/gl)


    gl-1.0-1.1.c


    ../common/common.h(40) : fatal error C1083: Cannot open include file: 'GL/glut.h


    ': No such file or directory


    rake aborted!


    Command failed with status (2): [cl -nologo -MD -Zi -O2b2xg- -G6 -DWIN32 ...]


    (See full trace by running task with --trace)


    rake aborted!


    Command failed with status (1): [call rake --nosearch...]


    (See full trace by running task with --trace)


    Gem files will remain installed in D:/Ruby/ruby/lib/ruby/gems/1.8/gems/ruby-open


    gl-0.60.1 for inspection.


    Results logged to D:/Ruby/ruby/lib/ruby/gems/1.8/gems/ruby-opengl-0.60.1/gem_mak


    e.out

  • RE: Having Trouble Updating to Latest RubyGems on the Mac? Try This.

    Pingback from Merb 1.0 | Розробка.com

blog comments powered by Disqus