tag:help.rubygems.org,2010-01-19:/discussions/problems/521-gem-install-problemsRubyGems.org: Discussion 2018-10-18T19:51:04Ztag:help.rubygems.org,2010-01-19:Comment/58996672011-03-11T18:21:01Z2011-03-11T18:21:01ZGem Install problems...<div><p>Please check that RubyGems source is <a href=
"http://rubygems.org">http://rubygems.org</a> and not<br>
<a href=
"http://gems.rubyforge.org">http://gems.rubyforge.org</a></p>
<p>gems.rubyforge.org is generating a 302 redirect and old versions
of<br>
RubyGems can't handle it.</p>
<p>Also, seems you have Ruby 1.8.6, that is no longer supported by
newer<br>
version of RubyGems, you need Ruby 1.8.7 at minimum.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/58996672011-03-11T19:10:14Z2011-03-11T19:10:16ZGem Install problems...<div><p>Well according to <a href=
"http://www.rubyonrails.org">www.rubyonrails.org</a> all I'm
supposed to do is do a:</p>
<p>gem update rails</p>
<p>beacuse its included with MacOSX developer tools..</p>
<p>But then I get the 302 problem again. I've tried doing the gem
add thingy but it gives me another 302 error. How can I update
Mac's rails?</p></div>Jefftag:help.rubygems.org,2010-01-19:Comment/58996672011-03-11T19:19:57Z2011-03-11T19:19:57ZGem Install problems...<div><p>$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174)
[universal-darwin10.0]</p>
<p>$ gem sources <strong><em>CURRENT SOURCES</em></strong></p>
<p><a href=
"http://gems.rubyforge.org/">http://gems.rubyforge.org/</a></p>
<p>$ gem sources --add <a href=
"http://rubygems.org/">http://rubygems.org/</a> <a href=
"http://rubygems.org/">http://rubygems.org/</a> added to
sources</p>
<p>$ gem sources --remove <a href=
"http://gems.rubyforge.org/">http://gems.rubyforge.org/</a>
<a href="http://gems.rubyforge.org/">http://gems.rubyforge.org/</a>
removed from sources</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/58996672011-03-11T19:46:42Z2011-03-11T19:46:44ZGem Install problems...<div><p>My version is 1.8.6 as you thought... and the source shows as
you have indicated...</p>
<p>however when I do the add... I get this error:</p>
<p>gem sources --add <a href=
"http://rubygems.org/">http://rubygems.org/</a><br>
ERROR: While executing gem ... (Gem::RemoteSourceException)<br></p>
<pre>
<code>HTTP Response 302 fetching http://rubygems.org/yaml</code>
</pre>
<p>and if I try the remove first I get:</p>
<p>gem sources --remove <a href=
"http://gems.rubyforge.org">http://gems.rubyforge.org</a><br>
ERROR: While executing gem ... (Gem::RemoteSourceException)<br></p>
<pre>
<code>HTTP Response 302 fetching http://gems.rubyforge.org/yaml</code>
</pre></div>Jefftag:help.rubygems.org,2010-01-19:Comment/58996672011-03-15T23:44:34Z2011-03-15T23:44:34ZGem Install problems...<div><p>Your rubygems version is too old, you will need to follow the
manual upgrade process. 1.3.7 is the latest version of RubyGems
which supports ruby 1.8.6.</p>
<p><a href=
"http://rubygems.rubyforge.org/rubygems-update/UPGRADING_rdoc.html">
http://rubygems.rubyforge.org/rubygems-update/UPGRADING_rdoc.html</a></p></div>Eric Hodeltag:help.rubygems.org,2010-01-19:Comment/58996672011-03-16T01:09:13Z2011-03-16T01:09:14ZGem Install problems...<div><p>I am aware it is too old, it's the upgrade process that is
causing me problems.</p>
<p>per your link I have:</p>
<p>1:</p>
<p>sudo gem install rubygems-update<br>
Password:<br>
ERROR: While executing gem ... (Gem::RemoteSourceException)<br></p>
<pre>
<code>HTTP Response 302 fetching http://gems.rubyforge.org/yaml</code>
</pre>
<p>and</p>
<p>2: manual install from the link... but the version at the link
is 1.6.2... so I dont understand why people keep giving me that
link as the versions you guys are mentioning are all different. But
following your link and instructions anyway I get:</p>
<p>ruby setup.rb<br>
./lib/rubygems/custom_require.rb:54: warning: parenthesize
argument(s) for future version
./lib/rubygems/custom_require.rb:57:in <code>require': undefined
method</code>end_with?' for <a href="String">no such file to load
-- Win32API</a> (NoMethodError)</p>
<pre>
<code>from ./lib/rubygems/config_file.rb:55
from ./lib/rubygems/custom_require.rb:36:in `gem_original_require'
from ./lib/rubygems/custom_require.rb:36:in `require'
from ./lib/rubygems/gem_runner.rb:8
from ./lib/rubygems/custom_require.rb:36:in `gem_original_require'
from ./lib/rubygems/custom_require.rb:36:in `require'
from setup.rb:25</code>
</pre>
<p>Still no success. I'm really confused and am beginning to think
this isn't going to work before my class extension ends now, lol. I
know other people can use it, so what could I be doing wrong?</p></div>Jefftag:help.rubygems.org,2010-01-19:Comment/58996672011-03-16T02:08:42Z2011-03-16T02:08:42ZGem Install problems...<div><p>Download RubyGems 1.3.7:</p>
<p><a href=
"http://rubyforge.org/frs/?group_id=126">http://rubyforge.org/frs/?group_id=126</a></p>
<p>You will need to scroll down until you see the file. or:</p>
<p>wget <a href=
"http://rubyforge.org/frs/download.php/70696/rubygems-1.3.7.tgz">http://rubyforge.org/frs/download.php/70696/rubygems-1.3.7.tgz</a><br>
tar xf rubygems-1.3.7.gz<br>
cd rubygems-1.3.7<br>
sudo ruby setup.rb</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/58996672012-04-09T19:31:11Z2012-04-09T19:31:11ZGem Install problems...<div><p>Excellent! I had the exact same problem with MacOSX Tiger. Now
gem works. Thanks Luis!</p></div>aleffetag:help.rubygems.org,2010-01-19:Comment/58996672012-06-30T13:57:58Z2012-06-30T13:58:00ZGem Install problems...<div><p>Thanks Luis and Jeff!!<br>
You saved my day.</p></div>Daniel Canet