Thursday, March 08, 2012

gem install issue on Mac Lion

gem install [whatever] on Mac Lion with Ruby >= 1.9.2 and Gem >= 1.3.7

When error is seen:
ERROR: http://rubygems.org/ does not appear to be a repository
ERROR: Could not find a valid gem 'whatever' (>= 0) in any repository

It is not the proxy problem if you sure you are not behind one.
If you don't want to downgrade your Ruby to 1.8.7, here's stupid but working solution.

Visit http://rubygems.org/ and download the gem and all its dependencies from there.
Go to the downloaded directory and install it one more time.

No comments: