尝试在OSX BUILD FAILED上使用rbenv安装ruby 2.1.2

因此,正如标题所暗示的那样,我正在尝试安装 ruby 2.1.2,尽管我已经尝试安装其他版本,但我遇到了同样的错误.我正在运行OSX 10.9.2.

我试过了:

通过brew install gcc47安装新的gcc编译器

安装更新的OSX命令行工具

卸载rbenv并再次尝试

重启机器

这是我得到的总和:

rbenv install 2.1.2
Downloading ruby-2.1.2.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/f22a6447811a81f3c808d1c2a5ce3b5f5f0955c68c9a749182feb4 25589e6635
Installing ruby-2.1.2...

BUILD Failed

Inspect or clean up the working tree at /var/folders/6c/h_82199n12515_hd3rcp2x5w0000gn/T/ruby-build.20140528115901.38728
Results logged to /var/folders/6c/h_82199n12515_hd3rcp2x5w0000gn/T/ruby-build.20140528115901.38728.log

Last 10 log lines:
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
compiling miniinit.c
compiling miniprelude.c
translating probes probes.d
compiling bignum.c
compiling class.c
dtrace: Failed to compile script probes.d: Preprocessor not found
make: *** [probes.h] Error 1
make: *** Waiting for unfinished jobs....
compiling compar.c

思考?

Gist of verbose output

解决方法

我能够使用以下方法构建它:
CONfigURE_OPTS="--disable-dtrace" rbenv install 2.1.2

基本上这就是wicz的问题评论中的建议.

KurtPreston解决方案对我不起作用.也使用OS X 10.9.

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...