Receiving error message when installing gems
Help needed and a huge thanks in advance.
I am trying to install sass but when I do so in the terminal I get this error:
ERROR: While executing gem ... (Gem::RemoteSourceException)
HTTP Response 302 fetching http://gems.rubyforge.org/yaml
Any help with what could be causing this is greatly appreciated.
Comments are currently closed for this discussion. You can start a new one.
2 Posted by ashley.spencer on 16 Jul, 2012 01:58 PM
May I add, that I also receive this error when attempting to update gems.
Support Staff 3 Posted by Luis Lavena on 16 Jul, 2012 02:22 PM
Hello,
This has been asked several times before:
http://help.rubygems.org/discussions/problems/521-gem-install-problems
http://help.rubygems.org/discussions/problems/668-gem-update-and-ru...
Also, recommend you upgrade RubyGems:
http://help.rubygems.org/kb/rubygems/why-do-i-get-http-response-302...
Hope that helps.
Luis Lavena closed this discussion on 16 Jul, 2012 02:22 PM.
ashley.spencer re-opened this discussion on 16 Jul, 2012 03:32 PM
4 Posted by ashley.spencer on 16 Jul, 2012 03:34 PM
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.
Here is my terminal readout:
SpencersMac:~ Spencer$ sudo gem update --system
Updating RubyGems
Updating rubygems-update
ERROR: Error installing rubygems-update:
ERROR: While executing gem ... (NoMethodError)
SpencersMac:~ Spencer$ sudo gem install ruby gems-update
ERROR: Could not find a valid gem 'ruby' (>= 0) in any repository
ERROR: Could not find a valid gem 'gems-update' (>= 0) in any repository
SpencersMac:~ Spencer$ sudo update_rubygems
Error: Cannot find RubyGems Update Path!
RubyGems has already been updated.
The rubygems-update gem may now be uninstalled.
E.g. gem uninstall rubygems-update
SpencersMac:~ Spencer$ cd Downloads
SpencersMac:Downloads Spencer$ cd rubyems-1.8.24
-bash: cd: rubyems-1.8.24: No such file or directory SpencersMac:Downloads Spencer$ cd rubygems-1.8.24
SpencersMac:rubygems-1.8.24 Spencer$ sudo ruby setup.rb
./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 ...
./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 '}'
Thanks again for the swift reply Luis.
Support Staff 5 Posted by Luis Lavena on 16 Jul, 2012 03:37 PM
Seems you're not reading the responses.
My responses to the first link provide instructions on how to change sources and be able to install gems.
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.
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.
Again, please read carefully the responses and don't jump directly to the things you need to run.
Is way better you understand the problem so in the future, if something similar shows you can process and appropriate answer on your own.
Luis Lavena closed this discussion on 16 Jul, 2012 03:37 PM.
ashley.spencer re-opened this discussion on 16 Jul, 2012 03:52 PM
6 Posted by ashley.spencer on 16 Jul, 2012 03:52 PM
Sorry again Luis bug I have used the threads.
When I manually upgrade I get this:
Updating RubyGems
Updating rubygems-update
ERROR: Error installing rubygems-update:
ERROR: While executing gem ... (NoMethodError)
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.
Support Staff 7 Posted by Luis Lavena on 16 Jul, 2012 04:00 PM
Please read the error message:
ERROR: Error installing rubygems-update:
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.
I can't help you on that.
Luis Lavena closed this discussion on 16 Jul, 2012 04:00 PM.