Invalid Gem Format

Sometimes when installing Ruby Gems, you run into errors. Yeah, I know, sounds crazy, but it happens. For instance, while installing the heroku gem using the following command:

sudo gem install heroku

I got back this error on the command line:

ERROR: Error installing heroku:
invalid gem format for /Library/Ruby/Gems/1.8/cache/rest-client-0.8.2.gem

While opening up the rest-client-0.8.2.gem file in TextMate, I discovered it was completely blank. After I deleted the bogus rest-client-0.8.2.gem file and tried again, both the heroku and dependent rest-client gems were installed properly. My guess as to why this happened is because I typed in the system password (i.e. sudo command) incorrectly on my first attempt at installing the gem. Silly me for using complex passwords.

Monday, January 19th, 2009 Announcements

No comments yet.

Leave a comment

You must be logged in to post a comment.