tag:help.rubygems.org,2010-01-19:/discussions/problems/661-installing-rubygems-manually-ruby-setuprb-fails-please-helpRubyGems.org: Discussion 2018-10-18T19:51:07Ztag:help.rubygems.org,2010-01-19:Comment/84156902011-07-05T23:32:00Z2011-07-05T23:32:00ZInstalling Rubygems manually -'ruby setup.rb' fails PLEASE HELP!<div><p>RubyGems 1.4 and newer only run on Ruby 1.8.7.</p>
<p>Snow Leopard ships with Ruby 1.8.7.</p>
<p>You will either need to:</p>
<p>Use Ruby 1.8.7 (or newer) from Snow Leopard</p>
<p>Build Ruby 1.8.7 (or newer) and install RubyGems on it</p>
<p>Download RubyGems 1.3.7 from Rubyforge:</p>
<pre>
<code>http://rubyforge.org/frs/?group_id=126</code>
</pre></div>Eric Hodeltag:help.rubygems.org,2010-01-19:Comment/84156902011-07-06T01:14:00Z2011-07-06T01:14:03ZInstalling Rubygems manually -'ruby setup.rb' fails PLEASE HELP!<div><p>Thanks I have done the above using Macports and have it working
now - I thought when I upgraded to Snow Leopard it would have given
me the appropriate Ruby versions but it seems not to have done -
and kept my older version of Ruby 1.8.6 - does 1.8.7 only come with
a clean install of Snow Leopard??</p></div>Andrewtag:help.rubygems.org,2010-01-19:Comment/84156902011-07-06T01:51:09Z2011-07-06T01:51:09ZInstalling Rubygems manually -'ruby setup.rb' fails PLEASE HELP!<div><p>Apple's ruby ships in /usr/bin.</p>
<p>If you've adjusted your path before upgrading to Snow Leopard
you may have been using a ruby from /usr/local/bin or
/opt/local/bin. The upgrade won't undo changes you've made to your
$PATH.</p>
<p>You can use <code>gem env</code> to see where ruby lives.</p></div>Eric Hodeltag:help.rubygems.org,2010-01-19:Comment/84156902015-11-10T21:59:02Z2015-11-10T21:59:03ZInstalling Rubygems manually -'ruby setup.rb' fails PLEASE HELP!<div><p>I see the same error,</p>
<p>/home/user/rubygems-2.0.7/lib/rubygems/deprecate.rb:53: syntax
error (SyntaxError) define_method name do |*args, &block| #
TODO: really works on 1.8.7?</p>
<p>I am using ruby 2.0.0. Please help.</p></div>Prajaktatag:help.rubygems.org,2010-01-19:Comment/84156902015-11-10T22:52:27Z2015-11-10T22:52:28ZInstalling Rubygems manually -'ruby setup.rb' fails PLEASE HELP!<div><p>Never mind. It was an issue with my path.</p></div>Prajakta