无法使用rbenv在OSX 10.10 GM 3.0上构建Ruby 2.1.3 [英] Unable to build Ruby 2.1.3 on OSX 10.10 GM 3.0 with rbenv

查看:80
本文介绍了无法使用rbenv在OSX 10.10 GM 3.0上构建Ruby 2.1.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了几个线程,其他用户也遇到了类似的问题,但是似乎都不是这样.

I have found several threads where other users have had similar issues but none of them are seem to be like this.

发出命令后:

rbenv install 2.1.3

我收到以下错误:

Installing ruby-2.1.3...

BUILD FAILED (OS X 10.10 using ruby-build 20140926)

Inspect or clean up the working tree at /var/folders/y_/5mjltxsn35q0n_k5817bszlw0000gn/T/ruby-build.20141010202255.63586
Results logged to /var/folders/y_/5mjltxsn35q0n_k5817bszlw0000gn/T/ruby-build.20141010202255.63586.log

Last 10 log lines:
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for cd using physical directory... cd -P
checking whether CFLAGS is valid... no
configure: error: something wrong with CFLAGS=" -O3 -Wno-error=shorten-64-to-32  "
make: *** No targets specified and no makefile found.  Stop.

推荐答案

优胜美地上gcc的Homebrew包似乎已损坏.这就是为什么它不起作用.

The Homebrew package for gcc on Yosemite seems to be broken. That's why it doesn't work.

有同样的问题.正在运行:

Had the same issue. Running:

CC=/usr/bin/gcc rbenv install 2.1.3

为我工作.

这篇关于无法使用rbenv在OSX 10.10 GM 3.0上构建Ruby 2.1.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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