tag:help.rubygems.org,2010-01-19:/discussions/problems/111-problem-with-ruby-gemsRubyGems.org: Discussion 2011-04-07T20:59:26Ztag:help.rubygems.org,2010-01-19:Comment/13402962010-03-30T13:46:48Z2010-03-30T13:46:48ZProblem with ruby Gems<div><p>What version of RubyGems are you on? (<code>gem env</code>)
Definitely update if it's not > 1.3.x with <code>gem update
--system</code></p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/13402962010-03-30T14:03:10Z2010-03-30T14:05:45ZProblem with ruby Gems<div><p>After running the (gem env), I got this result showing the
version as 1.3.1</p>
<p>C:\Users\imedia2>gem env<br>
RubyGems Environment:<br>
- RUBYGEMS VERSION: 1.3.1 - RUBY VERSION: 1.8.6 (2009-07-23
patchlevel 287) [java] - INSTALLATION DIRECTORY: C:/Program
Files/NetBeans 6.7.1/ruby2/jruby-1.2.0/lib/ruby/gems/1.8 - RUBY
EXECUTABLE: C:/Program Files/NetBeans
6.7.1/ruby2/jruby-1.2.0/bin/../bin/jruby.bat - EXECUTABLE
DIRECTORY: C:/Program Files/NetBeans
6.7.1/ruby2/jruby-1.2.0/bin/../bin - RUBYGEMS PLATFORMS:</p>
<pre>
<code>- ruby
- universal-java-1.6</code>
</pre>
<ul>
<li>GEM PATHS:
<ul>
<li>C:/Program Files/NetBeans
6.7.1/ruby2/jruby-1.2.0/lib/ruby/gems/1.8</li>
</ul>
</li>
<li>GEM CONFIGURATION:
<ul>
<li>:update_sources => true</li>
<li>:verbose => true</li>
<li>:benchmark => false</li>
<li>:backtrace => false</li>
<li>:bulk_threshold => 1000</li>
<li>"install" => "--env-shebang"</li>
<li>"update" => "--env-shebang"</li>
</ul>
</li>
<li>REMOTE SOURCES:
<ul>
<li><a href=
"http://gems.rubyforge.org/">http://gems.rubyforge.org/</a></li>
</ul>
</li>
</ul></div>Godwintag:help.rubygems.org,2010-01-19:Comment/13402962010-03-30T14:08:22Z2010-03-30T14:09:12ZProblem with ruby Gems<div><p>Hello, again I ran (gem update --system) and got the following
error message:</p>
<p>C:\Users\imedia2>gem update --system<br>
JRuby limited openssl loaded. gem install jruby-openssl for full
support.<br>
<a href=
"http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL">http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL</a><br>
Updating RubyGems<br>
WARNING: RubyGems 1.2+ index not found for:<br></p>
<pre>
<code> http://gems.rubyforge.org/</code>
</pre>
<p>RubyGems will revert to legacy indexes degrading
performance.<br>
Bulk updating Gem source index for: <a href=
"http://gems.rubyforge.org/">http://gems.rubyforge.org/</a><br>
ERROR: While executing gem ... (Gem::RemoteSourceException)<br></p>
<pre>
<code>Error fetching remote gem cache: SocketError: initialize: name or service not known (http://gems.rubyforge.org/yaml).</code>
</pre></div>Godwintag:help.rubygems.org,2010-01-19:Comment/13402962010-04-14T13:32:47Z2010-04-14T13:32:47ZProblem with ruby Gems<div><p>This is really strange. Are you behind a firewall or NAT? Is it
still happening? What if you set your gem sources in your
<code>~/.gemrc</code> to just <code>http://rubygems.org</code>
?</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/13402962010-05-30T04:39:44Z2010-05-30T04:39:46ZProblem with ruby Gems<div><p>I am also getting the similar error.<br>
WARNING: RubyGems 1.2+ index not found for:</p>
<p>ERROR : could not find gem builder locally or in a
repository.</p>
<p>Strangely, there is no URL specified after this line either.</p>
<p>But I am behind a NAT.</p>
<p>Any extra configurations or parameters required if it is behind
a NAT ?</p>
<p>Thanks in advance</p></div>Sureshtag:help.rubygems.org,2010-01-19:Comment/13402962010-07-13T21:15:55Z2010-07-13T21:15:55ZProblem with ruby Gems<div><p>As far as I know, RubyGems doesn't work behind a NAT and there's
no real resolution yet. You could set your gem source to <a href=
"http://production.s3.rubygems.org/">http://production.s3.rubygems.org/</a>
and that might help. Could you paste the output of <code>gem list
-rV</code> ?</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/13402962010-08-27T21:28:43Z2010-08-27T21:28:45ZProblem with ruby Gems<div><p>I also try to learn Ruby On Rails with tutorial and I think I am facing similar problem,</p>
<p>I need to update rails version from 2.0.2 to 2.2.2 as recommended in the book,</p>
<p>so I wrote the following command:</p>
<p>E:\INSTAN~1\rails_apps>gem install rails --version 2.2.2</p>
<p>and I got the following error:</p>
<p>ERROR: While executing gem ... (Gem::RemoteSourceException)<br />
</p>
<pre><code>HTTP Response 302 fetching http://gems.rubyforge.org/yaml</code></pre>
<p>also when I try to run another command :<br />
E:\INSTAN~1\rails_apps>gem list -rV</p>
<p>I got similar error too :<br />
<strong><em> REMOTE GEMS </em></strong></p>
<p>ERROR: While executing gem ... (Gem::RemoteSourceException)<br />
</p>
<pre><code>HTTP Response 302 fetching http://gems.rubyforge.org/yaml</code></pre>
<p>Any help? Thank you.<br />
</p></div>Hajer Alitag:help.rubygems.org,2010-01-19:Comment/13402962010-08-28T21:56:18Z2010-08-28T21:56:18ZProblem with ruby Gems<div><p>my problem has been solved by the following steps:</p>
<p>1- I downloaded RubyGems again from this link</p>
<p><a href="http://rubyonrails.org/download">http://rubyonrails.org/download</a></p>
<p>2- Then I followed the steps in this link</p>
<p><a href="http://www.msquaredweb.com/blog/articles/InstallingRailsOnWindowsXP.html">http://www.msquaredweb.com/blog/articles/InstallingRailsOnWindowsXP...</a></p>
<p>But to install rails 2.2.2 I wrote this command in the console</p>
<p>gem instal rails --version 2.2.2</p></div>Hajer Alitag:help.rubygems.org,2010-01-19:Comment/13402962010-08-31T03:16:55Z2010-08-31T03:16:55ZProblem with ruby Gems<div><p>Great, resolving this issue then.</p>
<p>For future reference, please use <a href="http://rubyinstaller.org">http://rubyinstaller.org</a>, it's way easier and more up to date.</p></div>Nick Quaranto