Accidental Technologist

Musings about Entrepreneurship, Technology and Software Development

  • Home
  • About
  • Still River Software
  • Privacy Policy

Powered by Genesis

You are here: Home / Ruby / Having Trouble Updating to Latest RubyGems on the Mac? Try This.

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

November 8, 2008 by Rob Bazinet

Tweet

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: RubyGems,Merb

Share this:

  • LinkedIn
  • Twitter
  • Facebook
  • Email
  • More
  • Pinterest
  • Tumblr
  • Pocket
  • Reddit

Related

Filed Under: Ruby

Care about your privacy? I do and use Fathom Analytics on this site.

Fathom Analytics

Comments

  1. Merb 1.0 | ????????.com says

    December 22, 2008 at 4:57 pm

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

    Pingback from Merb 1.0 | ????????.com

  2. Merb 1.0 | ????????.com says

    December 22, 2008 at 4:57 pm

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

    Pingback from Merb 1.0 | ????????.com

  3. kewin says

    March 24, 2009 at 6:32 am

    D:Rubyrubybin>gem update –system
    Updating RubyGems
    Nothing to update
    D:Rubyrubybin>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

  4. kewin says

    March 24, 2009 at 6:32 am

    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

Recent Posts

  • How to Fix Rails Flash Rendering When Using Hotwire
  • Hotwire Fix for CORS Error when using Omniauth
  • Fix Installation of Ruby using rbenv on macOS Big Sur
  • RailsConf 2021 and the Future of Conferences
  • Fixing Out of Diskspace Errors on Amazon EC2

Categories

Services I Love

HatchBox - Easy Rails Deploys Fathom Analytics
Follow @rbazinet

Rob Bazinet
@rbazinet

  • Exactly this…. https://t.co/yWj7fZ01HR
    about 1 day ago
  • https://t.co/EmagdpLoNv "Introducing GitHub Copilot X · GitHub"
    about 2 days ago
  • RIP Gordon Moore: https://t.co/c5J9LaHrj8
    about 2 days ago
  • Our daughter works as a teaching assistant at a local K-8 public school. It’s become apparent that students today r… https://t.co/p2t912GVyc
    about 2 days ago
  • Working to wrap up my current consulting gig by mid-April. I will be looking for the next thing soon. If anyone has… https://t.co/sg3cSV9yqM
    about 3 days ago
  • RSS - Posts
  • RSS - Comments
Find me on Mastodon