How to fix the “”Too many gem names”” error when running “gem build”

I was getting a strange error each time I ran “”gem build tic_tac_toe.gemspec”” in order to build a  gem I was working.

tooMany_error.

I had no idea where “document” was coming from. With a bit of google-fu I learnt about the gemrc file. A configuration file that hosts info about your gem files. It’s hosted in your local user directory.

On the Mac it’s located at:

/Users/<your_username>/.gemrc

Within this file I found

gem: –no document

I’m not sure why that was there, so I backed up the config file then removed the line and voila “gem build” worked!

Ced

Here is a link to a sample gemrc file  

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s