I am trying to install ruby on windows 7 behind a proxy.
I have looked at various forums and have set (i think) the http_proxy successfully (see below)
SET HTTP_PROXY=http:username:password@http://proxyhere.com:8080
however, i now get the following error trying to install a gem:
SocketError: getaddrinfo: No such host is known.
Any ideas?
Use `gem install -v` You may already be familiar with gem install , but if you add the -v flag, you can specify the version of the gem to install. Using -v you can specify an exact version or use version comparators.
The HTTP_PROXY
syntax needs to be URI:
SET HTTP_PROXY=scheme://user:pass@host:port/path
scheme
could be http
or https
and on some cases path
could be absent.
No browser (or RubyGems) will accept as valid URL the one you provided.
So in your case:
SET HTTP_PROXY=http://username:[email protected]:8080/
Hope that helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With