rails installation fails

santhosh's Avatar

santhosh

09 Jun, 2011 11:41 AM via web

I have installed sproutcore and along with it comes ruby 1.9.2 p-180 and gem 1.7.2 . So i tried to install rails with this
gem install rails --version 3.0.7

i get the following error.

ERROR: While executing gem ... (Gem::DependencyError)

Unable to resolve dependencies: rails requires actionmailer (= 3.0.7), railties (= 3.0.7), bundler (~> 1.0); activeresource requires activemodel (= 3.0.7);

activerecord requires activemodel (= 3.0.7), arel (~> 2.0.2), tzinfo (~> 0.3.23)
; actionpack requires activemodel (= 3.0.7), builder (~> 2.1.2), i18n (~> 0.5.0) , rack (~> 1.2.1), rack-test (~> 0.5.7), rack-mount (~> 0.6.14), tzinfo (~> 0.3. 23), erubis (~> 2.6.6)

Can some one pls help me to resolve this issue.

  1. Support Staff 2 Posted by Nick Quaranto on 12 Jun, 2011 05:05 PM

    Nick Quaranto's Avatar

    What RubyGems version, and what OS? If you could give us the output of gem env that would be awesome.

  2. 3 Posted by rwallace_88 on 14 Jun, 2011 01:12 PM

    rwallace_88's Avatar

    Hi I'm getting a simliar problem:
    D:\GE\Installs\Ruby>gem install rails
    ERROR: While executing gem ... (Gem::DependencyError)

    Unable to resolve dependencies: rails requires activesupport (= 2.2.3), activerecord (= 2.2.3), actionpack (= 2.2.3), actionmailer (= 2.2.3), activeresource
    

    (= 2.2.3)

    D:\GE\Installs\Ruby>gem env
    RubyGems Environment:
    - RUBYGEMS VERSION: 1.8.5 - RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [i386-mingw32] - INSTALLATION DIRECTORY: D:/Ruby192/lib/ruby/gems/1.9.1 - RUBY EXECUTABLE: D:/Ruby192/bin/ruby.exe - EXECUTABLE DIRECTORY: D:/Ruby192/bin - RUBYGEMS PLATFORMS:

    - ruby
    - x86-mingw32
    
    • GEM PATHS:
      • D:/Ruby192/lib/ruby/gems/1.9.1
      • L:/.gem/ruby/1.9.1
    • GEM CONFIGURATION:
      • :update_sources => true
      • :verbose => true
      • :benchmark => false
      • :backtrace => false
      • :bulk_threshold => 1000
    • REMOTE SOURCES:
  3. 4 Posted by rwallace_88 on 14 Jun, 2011 01:23 PM

    rwallace_88's Avatar

    Additonal information:
    OS Name: Microsoft Windows 7 Professional
    OS Version: 6.1.7600 N/A Build 7600
    rails-2.2.3.gem rubygems-1.8.5
    Thanks

  4. Support Staff 5 Posted by Luis Lavena on 19 Jun, 2011 04:10 PM

    Luis Lavena's Avatar

    Hello,

    Sorry for the delay on the answer. Seems to me that you're having issues retrieving the list of gems from rubygems.org

    Can you please perform:

    • gem sources -c
    • gem list rails and see it is not installed.

    Now, please execute the following command: gem install rails --debug -V, please create a pastie or gist with the complete output and update this ticket with the link for us to look at.

    Thank you.

  5. 6 Posted by yuexia12 on 22 Apr, 2012 03:51 AM

    yuexia12's Avatar

    I met the same problem, enclosed is output when I execute "gem install rails --debug -V"

  6. Support Staff 7 Posted by Luis Lavena on 03 May, 2012 11:04 PM

    Luis Lavena's Avatar

    @yuexia12

    Seems that RubyGems is having problems looking up for the servers.

    What are the list of remote sources when run gem env at the command prompt?

Reply to this discussion

Internal reply

Formatting help or Preview

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.