tag:help.rubygems.org,2010-01-19:/discussions/problems/668-gem-update-and-ruby-setup-help-are-both-failingRubyGems.org: Discussion 2018-10-18T19:51:08Ztag:help.rubygems.org,2010-01-19:Comment/85482522011-07-12T01:53:56Z2011-07-12T01:53:56Zgem update and ruby setup --help are both failing<div><p>Hi,<br>
I'm a ruby newby, at least as far as ruby admin is concerned (I've
done some programming in ruby but I'm getting spanked trying to
update ruby and gems on a new server).</p>
<p>Here's the problem, in a nutshell:</p>
<p>(1) Tried to run gem update --system (and before that, tried gem
install [ANYTHING]), but getting this error:</p>
<p>ERROR: While executing gem ... (Gem::RemoteSourceException)<br>
HTTP Response 302 fetching <a href=
"http://gems.rubyforge.org/yaml">http://gems.rubyforge.org/yaml</a></p>
<p>(2) Tried running ruby setup.rb --help to understand how/whether
I could update the source URL, and got this error:</p>
<p>erisaesq:rubygems-1.8.5 kathy$ ruby setup.rb --help<br>
./lib/rubygems.rb:334: warning: parenthesize argument(s) for future
version ./lib/rubygems.rb:511: warning: parenthesize argument(s)
for future version ./lib/rubygems/dependency_list.rb:8:in
`require': ./lib/rubygems/deprecate.rb:53: syntax error, unexpected
',', expecting '|' (SyntaxError) ... define_method name do |*args,
&block| # TODO: really works ...</p>
<pre>
<code> ^</code>
</pre>
<p>./lib/rubygems/deprecate.rb:54: syntax error, unexpected
tCONSTANT, expecting '}' ./lib/rubygems/deprecate.rb:63: syntax
error, unexpected kEND, expecting '}'
./lib/rubygems/deprecate.rb:68: syntax error, unexpected kEND,
expecting '}'</p>
<pre>
<code>from ./lib/rubygems/dependency_list.rb:8
from ./lib/rubygems.rb:29:in `require'
from ./lib/rubygems.rb:29
from setup.rb:27:in `require'
from setup.rb:27</code>
</pre>
<p>Question: what's up with my ruby config?</p></div>Kathytag:help.rubygems.org,2010-01-19:Comment/85482522011-07-12T02:32:17Z2011-07-12T02:32:17Zgem update and ruby setup --help are both failing<div><p>Hello,</p>
<p>Please adjust your RubyGems sources to point to rubygems.org
instead of gems.rubyforge.org, which is old and the version of
RubyGems you're using do not support redirect (HTTP 302)</p>
<p>See <code>gem help sources</code> or manually edit
<code>.gemrc</code> file in your home directory.</p>
<p>Also, what version of Ruby are you trying to update to RubyGems
1.8.5? RubyGems requires minimum Ruby 1.8.7.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/85482522011-07-12T02:37:41Z2011-07-12T02:37:41Zgem update and ruby setup --help are both failing<div><p>Many thanks for the fast reply!</p>
<p>I'll update the RubyGems source URL asap.</p>
<p>Also, re ruby: I'm in the process of updating ruby to 1.8.7, so
that should resolve any RubyGems issues with the older ruby
version.</p>
<p>Thanks again!</p></div>Kathy