google-api-ruby-client icon indicating copy to clipboard operation
google-api-ruby-client copied to clipboard

Error when installing google-api-client gem on Mac OSX

Open viecode09 opened this issue 10 years ago • 4 comments

when I use bundler I got this error :

An error occurred while installing google-api-client (0.9.3), and Bundler cannot continue.
Make sure that `gem install google-api-client -v '0.9.3'` succeeds before bundling.

And I try to install it manually as It's said in the error :

ERROR:  Error installing google-api-client:
    invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass

Really appreciate for all feedback..

Cheers,

viecode09 avatar Mar 02 '16 13:03 viecode09

What versions of ruby and bundler are you using?

sqrrrl avatar Mar 02 '16 19:03 sqrrrl

Thanks for your feedback..

I'm using Ruby 2.2.3 and Bundler version 1.11.2..

But I think It's not about Bundler stuff which failing, But on the way installing google-api-client gem..

It's still failing on my machine, is there anything that I can do to fix this issue anyway?

viecode09 avatar Mar 03 '16 03:03 viecode09

From a quick search it looks like deleting the gem from your local cache and re-installing might fix the issue. I don't know what would have caused the corruption in the first place, but give it a shot.

sqrrrl avatar Mar 03 '16 21:03 sqrrrl

Ah I got it.. seems to be working when I delete all caches in local directory.. Just wondering about corruption possibility in gem dependency related with google-api-client..

Thanks for your feedback.. really appreciate it!

viecode09 avatar Mar 04 '16 04:03 viecode09