本文介绍了Rails 3 安装错误:“@cert_chain 的值无效"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在新的 OS X Snow Leopard 机器上安装 Rails 3(安装了开发工具),当我 sudo gem install rails
时,我收到以下错误:
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
更新失败.谁看过这个吗?我grep
为 'cert_chain' 编辑了 builder-2.1.2 目录,但找不到任何线索.
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 版本是 1.8.7
Ruby version is 1.8.7
OS X 10.6.6
OS X 10.6.6
谢谢!
推荐答案
这是 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.
升级(首选):
gem update --system
降级:
gem update --system 1.6.2
这篇关于Rails 3 安装错误:“@cert_chain 的值无效"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!