加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

无法使用rbenv在OSX 10.10 GM 3.0上构建Ruby 2.1.3

发布时间:2020-12-17 03:49:21 所属栏目:百科 来源:网络整理
导读:我找到了几个线程,其他用户有类似的问题,但没有一个看起来像这样. 发出命令后: 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
我找到了几个线程,其他用户有类似的问题,但没有一个看起来像这样.

发出命令后:

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.

解决方法

在Yosemite seems to be broken上的gcc的Homebrew包.这就是为什么它不起作用.

有同样的问题.运行:

CC=/usr/bin/gcc rbenv install 2.1.3

为我工作.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读