Rails 3安装错误:“@ cert_chain的值无效” [英] Rails 3 install error: "invalid value for @cert_chain"

查看:176
本文介绍了Rails 3安装错误:“@ cert_chain的值无效”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在一台新的OS X Snow Leopard机器(安装了开发工具)上安装Rails 3,当我 sudo gem install rails 时,我得到以下错误:

 错误:执行gem时(Gem :: FormatException)
builder-2.1.2对于@cert_chain

有一个无效值,并且更新失败。有没有人见过这个?我 grep 编辑了'cert_chain'的builder-2.1.2目录,但找不到任何线索。

Ruby版本是1.8.7



OS X 10.6.6



谢谢!

解决方案

这是Rubygems 1.7.1版的问题。升级到1.7.2或更高版本,或降级到1.6.2,修复此问题。



升级(首选):

  gem update  - 系统

降级:

  gem update --system 1.6.2 


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 greped 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!

解决方案

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):

gem update --system

To downgrade:

gem update --system 1.6.2

这篇关于Rails 3安装错误:“@ cert_chain的值无效”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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