$ gem install rails失败。任何解决方法? [英] $ gem install rails failing. Any workaround?

查看:155
本文介绍了$ gem install rails失败。任何解决方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在RVM下安装...

  $ gem install rails 
错误:执行gem时(Gem :: RemoteFetcher :: FetchError)
错误响应Forbidden 403(http ://production.cf.rubygems.org/gems/rdoc-3.12.gem)

$ gem环境
RubyGems环境:
- RUBYGEMS版本:1.8.12
- RUBY VERSION:1.9.3(2011-10-30 patchlevel 0)[x86_64-darwin11.2.0]
- 安装目录:/Users/ethan/.rvm/gems/ruby-1.9.3-p0 @mtc_apps
- RUBY EXECUTABLE:/Users/ethan/.rvm/rubies/ruby-1.9.3-p0/bin/ruby
- 可执行目录:/Users/ethan/.rvm/gems/ruby -1.9.3-p0@mtc_apps/bin
- RUBYGEMS平台:
- ruby​​
- x86_64-darwin-11
- 创业板路径:
- / Users / ethan/.rvm/gems/ruby-1.9.3-p0@mtc_apps
- /Users/ethan/.rvm/gems/ruby-1.9.3-p0@global
- 创业板配置:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => [http://gemcutter.org,http://gems.rubyforge.org/,http://gems.github.com]
- install=> --no-rdoc --no-ri
- update=> --no-rdoc --no-ri
- 远程源:
- http://gemcutter.org
- http://gems.rubyforge.org/
- http://gems.github.com

任何人都看过?知道一种方法来实现它的功能吗?

解决方案

实际上,它似乎挂在我系统上的rdoc上。所以我把宝石下载到我的桌​​面上,并安装了它...

  $ gem install --local〜/ Desktop / rdoc -3.12.gem 

然后,Rails安装完成后即可完成。


I'm having problems installing Rails on OS X Lion for some reason...

Installing under RVM...

$ gem install rails
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    bad response Forbidden 403 (http://production.cf.rubygems.org/gems/rdoc-3.12.gem)

$ gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.12
  - RUBY VERSION: 1.9.3 (2011-10-30 patchlevel 0) [x86_64-darwin11.2.0]
  - INSTALLATION DIRECTORY: /Users/ethan/.rvm/gems/ruby-1.9.3-p0@mtc_apps
  - RUBY EXECUTABLE: /Users/ethan/.rvm/rubies/ruby-1.9.3-p0/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/ethan/.rvm/gems/ruby-1.9.3-p0@mtc_apps/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-11
  - GEM PATHS:
     - /Users/ethan/.rvm/gems/ruby-1.9.3-p0@mtc_apps
     - /Users/ethan/.rvm/gems/ruby-1.9.3-p0@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - :sources => ["http://gemcutter.org", "http://gems.rubyforge.org/", "http://gems.github.com"]
     - "install" => "--no-rdoc --no-ri"
     - "update" => "--no-rdoc --no-ri"
  - REMOTE SOURCES:
     - http://gemcutter.org
     - http://gems.rubyforge.org/
     - http://gems.github.com

Anyone seen this? Know of a way to get it to work?

解决方案

Actually, it seemed to be hanging up specifically on rdoc on my system. So I downloaded the gem to my desktop and installed it with...

$ gem install --local ~/Desktop/rdoc-3.12.gem

Then the Rails install was able to complete after that.

这篇关于$ gem install rails失败。任何解决方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆