Receiving error message when installing gems

ashley.spencer's Avatar

ashley.spencer

16 Jul, 2012 01:54 PM

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.

  1. 2 Posted by ashley.spencer on 16 Jul, 2012 01:58 PM

    ashley.spencer's Avatar

    May I add, that I also receive this error when attempting to update gems.

  2. Support Staff 3 Posted by Luis Lavena on 16 Jul, 2012 02:22 PM

    Luis Lavena's Avatar
  3. Luis Lavena closed this discussion on 16 Jul, 2012 02:22 PM.

  4. ashley.spencer re-opened this discussion on 16 Jul, 2012 03:32 PM

  5. 4 Posted by ashley.spencer on 16 Jul, 2012 03:34 PM

    ashley.spencer's Avatar

    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:

    rubygems-update requires Ruby version >= 1.8.7.
    

    ERROR: While executing gem ... (NoMethodError)

    undefined method `version' for nil:NilClass
    

    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 '}'

    from ./lib/rubygems.rb:32
    from setup.rb:27:in `require'
    from setup.rb:27
    

    Thanks again for the swift reply Luis.

  6. Support Staff 5 Posted by Luis Lavena on 16 Jul, 2012 03:37 PM

    Luis Lavena's Avatar

    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.

  7. Luis Lavena closed this discussion on 16 Jul, 2012 03:37 PM.

  8. ashley.spencer re-opened this discussion on 16 Jul, 2012 03:52 PM

  9. 6 Posted by ashley.spencer on 16 Jul, 2012 03:52 PM

    ashley.spencer's Avatar

    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:

    rubygems-update requires Ruby version >= 1.8.7.
    

    ERROR: While executing gem ... (NoMethodError)

    undefined method `version' for nil:NilClass
    

    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.

  10. Support Staff 7 Posted by Luis Lavena on 16 Jul, 2012 04:00 PM

    Luis Lavena's Avatar

    Please read the error message:

    ERROR: Error installing rubygems-update:

    rubygems-update requires Ruby version >= 1.8.7.
    

    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.

  11. Luis Lavena closed this discussion on 16 Jul, 2012 04:00 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

29 Aug, 2014 06:23 PM
28 Aug, 2014 07:18 PM
27 Aug, 2014 12:03 PM
26 Aug, 2014 07:09 PM
26 Aug, 2014 07:07 PM