I haven’t used ruby for a while, but recently wanted to try out {{ “github.com/aanand/git-up” | ext_link: “git-up”}} on OSX. According to the {{ “github.com/aanand/git-up/blob/master/README.md” | ext_link: “instructions”}}, a simple gem install git-up should work :

> sudo gem install git-up
Updating metadata for 1 gems from http://gems.rubyforge.org
.
complete
ERROR:  could not find git-up locally or in a repository

I assume this is something to do with gem hosting moving to github or something… I haven’t really been following ruby for a year or so so I’m not sure exactly what’s going on. It seems i’m running a pretty old version of RubyGems, so I tried to update :

> gem --version
1.0.1
> sudo gem update
Updating installed gems...
Updating metadata for 1 gems from http://gems.rubyforge.org
.
complete
Nothing to update

After a little googling, the correct command turned out to be the following :

> sudo gem update --system
Updating RubyGems...
Updating metadata for 1 gems from http://gems.rubyforge.org
.
complete
Attempting remote update of rubygems-update
Successfully installed rubygems-update-1.3.5
1 gem installed
Installing ri documentation for rubygems-update-1.3.5...
Installing RDoc documentation for rubygems-update-1.3.5...
Could not find main page README
Could not find main page README
Could not find main page README
Could not find main page README
Updating version of RubyGems to 1.3.5
Installing RubyGems 1.3.5
RubyGems 1.3.5 installed

=== 1.3.5 / 2009-07-21

Bug fixes:

* Fix use of prerelease gems.
* Gem.bin_path no longer escapes path with spaces. Bug #25935 and #26458.

Deprecation Notices:

* Bulk index update is no longer supported (the code currently remains, but not
  the tests)
* Gem::manage_gems was removed in 1.3.3.
* Time::today was removed in 1.3.3.


------------------------------------------------------------------------------

RubyGems installed the following executables:
        /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/gem

RubyGems system software updated

Now with the more recent version, {{ “github.com/aanand/git-up” | ext_link: “git-up”}} installs fine :

> gem --version
1.3.5
> sudo gem install git-up
Successfully installed colored-1.2
Successfully installed diff-lcs-1.1.2
Successfully installed grit-2.0.0
Successfully installed git-up-0.1.0
4 gems installed
Installing ri documentation for colored-1.2...
Installing ri documentation for diff-lcs-1.1.2...
Installing ri documentation for grit-2.0.0...
Installing ri documentation for git-up-0.1.0...
Installing RDoc documentation for colored-1.2...
Installing RDoc documentation for diff-lcs-1.1.2...
Installing RDoc documentation for grit-2.0.0...
Installing RDoc documentation for git-up-0.1.0...