Rails 3 安装错误:“@cert_chain 值无效”
我尝试在新的 OS X Snow Leopard 计算机(安装了开发工具)上安装 Rails 3,当我 sudo gem install Rails
时,出现以下错误:
ERROR: While executing gem ... (Gem::FormatException)
builder-2.1.2 has an invalid value for @cert_chain
并且更新失败。有人见过这个吗?我在 builder-2.1.2 目录中 grep 查找“cert_chain”,但找不到任何线索。
Ruby 版本是 1.8.7
OS X 10.6.6
谢谢!
I'm trying to install Rails 3 on a new OS X Snow Leopard machine (with dev tools installed), and when I sudo gem install rails
, I get the following error:
ERROR: While executing gem ... (Gem::FormatException)
builder-2.1.2 has an invalid value for @cert_chain
And the update fails. Has anyone seen this before? I grep
ed the builder-2.1.2 directory for 'cert_chain,' but couldn't find any clues.
Ruby version is 1.8.7
OS X 10.6.6
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(14)
在Ubuntu 10.04上升级到Rails 3时遇到同样的问题:
安装抽象(1.0.0)/usr/local/lib/ruby/site_ruby/1.8/rubygems/specation.rb:371:in `initialize_copy':abstract-1.0。 0 有一个无效的 @cert_chain 值 (Gem::FormatException)
sudo gem update --system 1.6.2 解决了这个问题
Had the same problem on Ubuntu 10.04 while upgrading to Rails 3:
Installing abstract (1.0.0) /usr/local/lib/ruby/site_ruby/1.8/rubygems/specification.rb:371:in `initialize_copy': abstract-1.0.0 has an invalid value for @cert_chain (Gem::FormatException)
sudo gem update --system 1.6.2 solved the problem
使用 Ruby 1.9.2、Rails 3.0.3 和 Rubygems 1.8.10 创建新的 RoR 应用程序时运行“bundle install”时收到类似的错误。
修复:将 Rubygems 从 1.8.10 降级到 1.8.9
Received similar error when running "bundle install" when creating new RoR application using Ruby 1.9.2 and Rails 3.0.3 and Rubygems 1.8.10.
Fix: downgrading Rubygems from 1.8.10 to 1.8.9
我在 Amazon Linux (v 2010.11) 上使用 Ruby 1.8.7 和 RubyGems 1.7.1 的原始安装的 Rails 中看到了完全相同的情况。
I see the exact same thing on a virgin install of rails on Amazon Linux (v 2010.11) with Ruby 1.8.7 and RubyGems 1.7.1.
作为一种解决方法,我可以通过注释 rubygems/specification.rb 中的第 371 行(“raise e”)来安装 Rails。 (这是 rubygems 1.7.1 的情况。)
As a workaround I was able to install rails by commenting out line 371 in rubygems/specification.rb ("raise e"). (This is with rubygems 1.7.1.)
好吧,我刚刚从以下位置下载它: http://rubygems.org/pages/download
然后运行安装程序.rb 在提取的目录中,然后重新运行“gem install Rails”。 (如果使用需要 sudo 的环境,则两者都需要)
Well, I just downloaded it from: http://rubygems.org/pages/download
and then ran setup.rb in the extracted directory and then re-ran 'gem install rails'. (both with sudo if using an environment that needs it)
我降级到 rubygems 1.6.2,这也对我有用。 1.7.1好像有bug什么的。
I downgraded to rubygems 1.6.2 and this worked for me too. 1.7.1 seems to have a bug or something.
Rackspace 云服务器上也有同样的问题,转到 1.7.1 会出现错误消息 - 返回到 1.6.2 错误消息就消失了。
Having the same issue on Rackspace cloud servers, going to 1.7.1 introduced the error message -- going back to 1.6.2 it went away.
gem 版本 1.7.2 也有同样的问题。
但更新 1.8.9 修复了这个问题。
Had the same problem with gem Version 1.7.2.
But updating on 1.8.9 fixed it.
这是RubyGems版本1.7.1的问题。升级到1.7.2或更高,或降级至1.6.2,请修复此问题。
升级(首选):
降级:
This is an issue with Rubygems version 1.7.1. Upgrading to 1.7.2 or above, or downgrading to 1.6.2, fixes this.
To upgrade (preferred):
To downgrade:
检查你的 gem 版本
如果它是 1.7.1,然后通过以下命令降级 rubygem
似乎新的 rubygem 版本(1.7.1)不适用于某些版本的 Ruby。所以降级了。
Check your gem version by
If it is 1.7.1 than downgrade rubygems by following command
It seems that new rubygem version(1.7.1) is not working with some versions of Ruby. So downgrade it.
我通过将 ruby 更新到 1.9.2p180 解决了这个问题。 (在窗户上)
I was able to fix this by updating ruby to 1.9.2p180. (on windows)
sudo gem update --system 1.6.2
sudo gem update --system 1.6.2
我在尝试安装 Rails 时遇到了同样的错误,我同意 evan.leonard 我认为这是 v1.7.1 的错误。我将 rubygems 降级到 1.6.2 并且它起作用了,以下是如何降级...
gem update --system 1.6.2
I had the same error when trying to install rails, I agree with evan.leonard I think it a bug with v1.7.1. I downgraded rubygems to 1.6.2 and it worked, here is how to downgrade...
gem update --system 1.6.2
在 SL 10.6.7 上表现得非常出色。解决了安装 Vagrant 时出现的问题。
宝石更新--系统1.6.2
Worked like a charm on SL 10.6.7. Fixed my problem with getting Vagrant to install.
gem update --system 1.6.2