tag:help.rubygems.org,2010-01-19:/discussions/problems/266-error-in-installing-gemsneed-helpRubyGems.org: Discussion 2018-10-18T19:50:57Ztag:help.rubygems.org,2010-01-19:Comment/24490212010-08-02T22:14:48Z2010-08-02T22:14:51ZError in installing gems...NEED HELP<div><p>When I try to install gems, i get the following errors:<br />
ERROR: <a href="http://rubygems.org/">http://rubygems.org/</a> does not appear to be a repository<br />
ERROR: Could not find a valid gem 'rails' (>= 0) in any repository</p>
<p>OS - Linux 10 (Lucid)<br />
ruby -v is 1.8.7<br />
gem version is 1.3.7<br />
gem list gives me a blank list showing <strong>Local gems </strong> at the top with no local gems installed as i am now installing them from scratch now.<br />
The command i write:</p>
<p>sudo gem install rails mysql sqlite3-ruby mongrel</p>
<p>which gives me errors listed above.<br />
My internet is working fine in browsers and I am also able to use synaptic manager with my GNOME proxy settings listed as 172.16.0.1 as server and 8181 as port.<br />
When i do ping at <a href="http://rubygems.org/">http://rubygems.org/</a> , it probably goes in an infinite loop, so i end up doing Ctrl + Z to stop the process. So, i guess its unable to ping the above site.<br />
How do i get to know that my server is blocking gem or not??<br />
How can i use --http-proxy with gem install command or set HTTP_PROXY variable with a valid URL of the proxy.??<br />
Is there any other way of doing this???<br />
In all the other discussions, there is no real answer as such. I have read all the discussions related to the above problem, please help me.</p></div>Silver Spoontag:help.rubygems.org,2010-01-19:Comment/24490212010-08-03T21:23:42Z2010-08-03T21:23:42ZError in installing gems...NEED HELP<div><p><code>gem help env</code> explains how to use proxies with rubygems. If you're using --http-proxy RubyGems expects a URL like "<a href="http://example:80">http://example:80</a>"</p></div>Eric Hodeltag:help.rubygems.org,2010-01-19:Comment/24490212010-08-04T04:25:30Z2010-08-04T04:25:31ZError in installing gems...NEED HELP<div><p>Got it.<br />
Looks like the sudo command doesn't work with the proxy servers itself in Ubuntu 10.04 Lucid.<br />
So, if someone you out there faces the same problem, just try the sudo command with the -i option.<br />
That worked for me, and guess should work with all of u guys too.</p></div>Silver Spoon