tag:help.rubygems.org,2010-01-19:/discussions/problems/1223-receiving-error-message-when-installing-gemsRubyGems.org: Discussion 2012-07-16T16:00:38Ztag:help.rubygems.org,2010-01-19:Comment/173505792012-07-16T13:58:48Z2012-07-16T13:58:48ZReceiving error message when installing gems<div><p>May I add, that I also receive this error when attempting to
update gems.</p></div>ashley.spencertag:help.rubygems.org,2010-01-19:Comment/173505792012-07-16T14:22:15Z2012-07-16T14:22:15ZReceiving error message when installing gems<div><p>Hello,</p>
<p>This has been asked several times before:</p>
<p><a href=
"http://help.rubygems.org/discussions/problems/521-gem-install-problems">
http://help.rubygems.org/discussions/problems/521-gem-install-problems</a></p>
<p><a href=
"http://help.rubygems.org/discussions/problems/668-gem-update-and-ruby-setup-help-are-both-failing">
http://help.rubygems.org/discussions/problems/668-gem-update-and-ru...</a></p>
<p>Also, recommend you upgrade RubyGems:</p>
<p><a href=
"http://help.rubygems.org/kb/rubygems/why-do-i-get-http-response-302-or-301-when-installing-a-gem">
http://help.rubygems.org/kb/rubygems/why-do-i-get-http-response-302...</a></p>
<p>Hope that helps.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/173505792012-07-16T15:34:11Z2012-07-16T15:34:11ZReceiving error message when installing gems<div><p>Sorry about this but I have tried the solutions in the threads
you provided but still no joy. I don't know where I am going wrong.
I tried installing an earlier version of ruby gems but sass require
1.8.7.</p>
<p>Here is my terminal readout:</p>
<p>SpencersMac:~ Spencer$ sudo gem update --system<br>
Updating RubyGems<br>
Updating rubygems-update<br>
ERROR: Error installing rubygems-update:</p>
<pre>
<code>rubygems-update requires Ruby version >= 1.8.7.</code>
</pre>
<p>ERROR: While executing gem ... (NoMethodError)</p>
<pre>
<code>undefined method `version' for nil:NilClass</code>
</pre>
<p>SpencersMac:~ Spencer$ sudo gem install ruby gems-update<br>
ERROR: Could not find a valid gem 'ruby' (>= 0) in any
repository<br>
ERROR: Could not find a valid gem 'gems-update' (>= 0) in any
repository<br>
SpencersMac:~ Spencer$ sudo update_rubygems<br>
Error: Cannot find RubyGems Update Path!</p>
<p>RubyGems has already been updated.<br>
The rubygems-update gem may now be uninstalled.<br>
E.g. gem uninstall rubygems-update<br>
SpencersMac:~ Spencer$ cd Downloads<br>
SpencersMac:Downloads Spencer$ cd rubyems-1.8.24<br>
-bash: cd: rubyems-1.8.24: No such file or directory
SpencersMac:Downloads Spencer$ cd rubygems-1.8.24<br>
SpencersMac:rubygems-1.8.24 Spencer$ sudo ruby setup.rb<br>
./lib/rubygems.rb:335: warning: parenthesize argument(s) for future
version ./lib/rubygems.rb:517: warning: parenthesize argument(s)
for future version ./lib/rubygems.rb:32:in `require':
./lib/rubygems/deprecate.rb:54: syntax error, unexpected ',',
expecting '|' (SyntaxError) ... define_method name do |*args,
&block| # TODO: really works ...</p>
<pre>
<code> ^</code>
</pre>
<p>./lib/rubygems/deprecate.rb:55: syntax error, unexpected
tCONSTANT, expecting '}' ./lib/rubygems/deprecate.rb:64: syntax
error, unexpected kEND, expecting '}'
./lib/rubygems/deprecate.rb:69: syntax error, unexpected kEND,
expecting '}'</p>
<pre>
<code>from ./lib/rubygems.rb:32
from setup.rb:27:in `require'
from setup.rb:27</code>
</pre>
<p>Thanks again for the swift reply Luis.</p></div>ashley.spencertag:help.rubygems.org,2010-01-19:Comment/173505792012-07-16T15:37:46Z2012-07-16T15:37:46ZReceiving error message when installing gems<div><p>Seems you're not reading the responses.</p>
<p>My responses to the first link provide instructions on how to
change sources and be able to install gems.</p>
<p>If you can't change sources you will need to proceed with manual
upgrade of RubyGems, which is linked in the 3rd link I
provided.</p>
<p>The second link provided instructions on how to manually edit
.gemrc file if you couldn't manually install RubyGems or follow the
instructions of the first link.</p>
<p>Again, please read carefully the responses and don't jump
directly to the things you need to run.</p>
<p>Is way better you understand the problem so in the future, if
something similar shows you can process and appropriate answer on
your own.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/173505792012-07-16T15:52:58Z2012-07-16T15:52:58ZReceiving error message when installing gems<div><p>Sorry again Luis bug I have used the threads.</p>
<p>When I manually upgrade I get this:</p>
<p>Updating RubyGems<br>
Updating rubygems-update<br>
ERROR: Error installing rubygems-update:</p>
<pre>
<code>rubygems-update requires Ruby version >= 1.8.7.</code>
</pre>
<p>ERROR: While executing gem ... (NoMethodError)</p>
<pre>
<code>undefined method `version' for nil:NilClass</code>
</pre>
<p>My source is already set to rubygems.org. I am unsure about
editing the .gemrc file as there are no instructions on how to go
about doing this. I am not a developer and simply wish to makes use
of SASS, so I am sorry if i am coming across ignorant.</p></div>ashley.spencertag:help.rubygems.org,2010-01-19:Comment/173505792012-07-16T16:00:36Z2012-07-16T16:00:36ZReceiving error message when installing gems<div><p>Please read the error message:</p>
<p>ERROR: Error installing rubygems-update:</p>
<pre>
<code>rubygems-update requires Ruby version >= 1.8.7.</code>
</pre>
<p>You have an old version of Ruby (less than 1.8.7) . To upgrade
your Ruby you will need to check your Operating System upgrade
mechanisms.</p>
<p>I can't help you on that.</p></div>Luis Lavena