tag:help.rubygems.org,2010-01-19:/discussions/problems/590-unable-to-updateinstall-gemsRubyGems.org: Discussion 2018-10-18T19:51:06Ztag:help.rubygems.org,2010-01-19:Comment/71709052011-05-11T19:44:49Z2011-05-11T19:44:49ZUnable to update/install gems<div><p>Please check your proxy settings:</p>
<p><a href=
"http://help.rubygems.org/discussions/problems/555-problem-installimg-gems-in-windows-7">
http://help.rubygems.org/discussions/problems/555-problem-installim...</a><br>
<a href=
"http://help.rubygems.org/discussions/problems/142-http-proxy-setup">
http://help.rubygems.org/discussions/problems/142-http-proxy-setup</a></p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/71709052011-05-11T19:54:30Z2011-05-11T19:54:35ZUnable to update/install gems<div><p>Actually this is what I've been trying to do all day. I am
confused by the actual command reference, for one thing. Do I type
the [no-] or is that referring to something else? I know what my
http proxy server is and it's port as I have it working fine in my
browser. What I've tried last:</p>
<p>C:>gem install heroku --http-proxy <a href=
"http://[the">http://[the</a> url from my browser]:8080, -p<br>
ERROR: While executing gem ... (OptionParser::InvalidArgument)</p>
<pre>
<code>invalid argument: --http-proxy http://access.lb.ssa.gov:8080,</code>
</pre></div>mgbeerstag:help.rubygems.org,2010-01-19:Comment/71709052011-05-11T19:57:40Z2011-05-11T19:57:40ZUnable to update/install gems<div><p>I have</p>
<p>On Wed, May 11, 2011 at 3:45 PM, Luis Lavena <<br>
<a href=
"mailto:tender+dfd9e67db99aac3fdc3addbc48db0807fb4b0d156@tenderapp.com">
tender+dfd9e67db99aac3fdc3addbc48db0807fb4b0d156@tenderapp.com</a>>
wrote:</p></div>Matthew Beerstag:help.rubygems.org,2010-01-19:Comment/71709052011-05-11T19:59:05Z2011-05-11T19:59:05ZUnable to update/install gems<div><p>I did not get much of an answer from you here and you closed
the<br>
discussion. Why? The problem isn't one that I cannot figure out how
to<br>
find the answers that you referred me to already, it's that I've
already<br>
been there, done that! You should at least give the poster a chance
to<br>
reply to that effect before closing it hastily.</p>
<p>On Wed, May 11, 2011 at 3:45 PM, Luis Lavena <<br>
<a href=
"mailto:tender+dfd9e67db99aac3fdc3addbc48db0807fb4b0d156@tenderapp.com">
tender+dfd9e67db99aac3fdc3addbc48db0807fb4b0d156@tenderapp.com</a>>
wrote:</p></div>Matthew Beerstag:help.rubygems.org,2010-01-19:Comment/71709052011-05-11T21:18:47Z2011-05-11T21:18:47ZUnable to update/install gems<div><p>I did close the discussion because is a duplication of other
discussion on the same thing: proxy</p>
<p><code>gem install heroku
--http-proxy=http://user:password@server:port/</code> is the
correct syntax.</p>
<p>If you had <code>HTTP_PROXY</code> environment variable set,
then --no-http-proxy will disable that.</p>
<p>The <code>no</code> part is the negation of the first.</p>
<p>Either you can use the <code>--http-proxy</code> option or set
<code>HTTP_PROXY</code> environment variable.</p>
<p>Please check again the command syntax and the URI syntax I shown
above.</p>
<p>Let me know if that doesn't work.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/71709052011-05-11T21:20:42Z2011-05-11T21:20:42ZUnable to update/install gems<div><p>Thank you for getting back to me. I will let you know, if you
like.. if<br>
this works or not. I feel like I've tried every angle though ;)</p>
<p>On Wed, May 11, 2011 at 5:18 PM, Luis Lavena <<br>
<a href=
"mailto:tender+dfd9e67db99aac3fdc3addbc48db0807fb4b0d156@tenderapp.com">
tender+dfd9e67db99aac3fdc3addbc48db0807fb4b0d156@tenderapp.com</a>>
wrote:</p></div>Matthew Beerstag:help.rubygems.org,2010-01-19:Comment/71709052011-05-11T21:27:56Z2011-05-11T21:27:56ZUnable to update/install gems<div><p>I'm not sure why but it just doesn't work</p>
<p>our proxy server is like this: access.[a government
org].gov:80</p></div>Matthew Beerstag:help.rubygems.org,2010-01-19:Comment/71709052011-05-11T21:31:17Z2011-05-11T21:31:17ZUnable to update/install gems<div><p>What protocol? HTTP?</p>
<p>the URL needs to be <code>http://access.[goverment
org].gov:80/</code></p>
<p>It is important the format.</p>
<p>Please provide a Pastie or Gist that shows the full output of
the command:</p>
<p><code>gem install heroku --http-proxy=http://access.[a
government org].gov:80/ --debug -V</code></p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/71709052011-05-11T21:40:17Z2011-05-11T21:40:17ZUnable to update/install gems<div><p>pastie:<br>
<a href=
"http://pastie.org/1890714">http://pastie.org/1890714</a></p>
<p>On Wed, May 11, 2011 at 5:31 PM, Luis Lavena <<br>
<a href=
"mailto:tender+dfd9e67db99aac3fdc3addbc48db0807fb4b0d156@tenderapp.com">
tender+dfd9e67db99aac3fdc3addbc48db0807fb4b0d156@tenderapp.com</a>>
wrote:</p></div>Matthew Beerstag:help.rubygems.org,2010-01-19:Comment/71709052011-05-11T21:41:45Z2011-05-11T21:41:45ZUnable to update/install gems<div><p>updated the pastie so as not to reveal the actual domain or
organization.</p></div>Matthew Beerstag:help.rubygems.org,2010-01-19:Comment/71709052011-05-11T21:43:23Z2011-05-11T21:43:23ZUnable to update/install gems<div><p>You're getting a Forbbiden (403) response from the proxy:</p>
<pre>
<code>GET http://rubygems.org/latest_specs.4.8.gz
403 Forbidden
Exception `Gem::RemoteFetcher::FetchError' at c:/ruby/lib/ruby/site_ruby/1.8/rub
ygems/remote_fetcher.rb:300 - bad response Forbidden 403 (http://rubygems.org/la
test_specs.4.8.gz)</code>
</pre>
<p>This is most likely because the proxy requires an username and a
password that you aren't providing in the URI for http-proxy.</p>
<p>Please see my previous comment on the URI structure for http
proxy, add your username and password and try again.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/71709052011-05-11T21:44:18Z2011-05-11T21:44:18ZUnable to update/install gems<div><p>BTW, is completely irrelevant for what organization you work
for, what matters is help you solve the issue, which seems to be
associated with not authorized proxy.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/71709052011-05-11T21:44:57Z2011-05-11T21:44:57ZUnable to update/install gems<div><p>Ok i will try that, not sure if I have the right format for it
since our<br>
logins are domain\username</p>
<p>On Wed, May 11, 2011 at 5:43 PM, Luis Lavena <<br>
<a href=
"mailto:tender+dfd9e67db99aac3fdc3addbc48db0807fb4b0d156@tenderapp.com">
tender+dfd9e67db99aac3fdc3addbc48db0807fb4b0d156@tenderapp.com</a>>
wrote:</p></div>Matthew Beerstag:help.rubygems.org,2010-01-19:Comment/71709052011-05-23T21:37:04Z2011-05-23T21:37:04ZUnable to update/install gems<div><p>Hello,</p>
<p>I haven't heard back from you you in 2 weeks. Did you manage to
solve the correct URI of your corporate proxy?</p>
<p>Please respond to this and let us know.</p>
<p>Going to close this in a few days if no response is given.</p>
<p>Thank you.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/71709052014-01-30T16:16:36Z2014-01-30T16:16:38ZUnable to update/install gems<div><p>I had exactly the same problem and using this format of the
proxy worked for me on 1.3.6</p>
<p>gem install heroku --http-proxy=<a href=
"http://user:password@server:port/">http://user:password@server:port/</a></p>
<p>Using the environment variables did not worked at all.</p></div>Cesar Garcia