Pages - Menu

Monday, October 8, 2012

Ruby - Error fetching data

Hi fellas.

I was trying to install mysql gem and got this message:

WARNING: Error fetching data: SocketError: getaddrinfo: Name or service not known (http://rubygems.org/latest_specs.4.8.gz)
ERROR: Could not find a valid gem 'mysql' (>= 0) in any repository
ERROR: Possible alternatives: mysql

That's weird isn't it? Couldn't find mysql and a possible alternative is mysql?

Not thinking too much I remembered I had a proxy change on my system. Set it to none and same problem.

Googling a bit I found this: --no-http-proxy

$ gem install mysql --no-http-proxy

Problem solved and lesson learned. The gem install remembers my last proxy configuration and stick with it regardless of its availability.

Adios!

No comments:

Post a Comment