Mac 下使用 rvm 安装 ree 报段错误

背景

系统版本:Mac OS X Lion
使用 rvm install ree 报错:./ext/purelib.rb:2: [BUG] Segmentation fault

解决方法

export CC=/usr/bin/gcc-4.2

如果还是无法安装,请尝试先 rvm remove ree 后再行安装,即:

rvm remove ree
export CC=/usr/bin/gcc-4.2
rvm install ree

参考

This entry was posted in Mac OS, Ruby. Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>