使用 rvm 安装 ruby​​2 时出错 [英] Error while installing ruby2 with rvm

查看:59
本文介绍了使用 rvm 安装 ruby​​2 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图以这种方式安装它:

I was trying to install it this way:

brew install autoconf brew install automake brew install libyaml rvm安装红宝石头

brew install autoconf brew install automake brew install libyaml rvm install ruby-head

我试图用 rvm 安装 ruby​​2,但出现此错误:

I was trying to install ruby2 with rvm but I got this error:

ruby-head - #compiling 运行make"时出错,请阅读/Users/boti/.rvm/log/ruby-head/make.log 时出现错误运行制作.停止安装.Ruby 'ruby-head' 已构建使用 clang - 但它没有(完全)支持,预计会出现错误.

ruby-head - #compiling Error running 'make ', please read /Users/boti/.rvm/log/ruby-head/make.log There has been an error while running make. Halting the installation. Ruby 'ruby-head' was build using clang - but it's not (fully) supported, expect errors.

这是我的编译日志:

编译 ./missing/setproctitle.c 编译 dmyext.c 链接 miniruby/Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:111: [BUG] 堆栈一致性错误 (sp: 38, bp: 36) ruby​​ 2.0.0dev (2013-02-25)[x86_64-darwin12.2.0]

compiling ./missing/setproctitle.c compiling dmyext.c linking miniruby /Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:111: [BUG] Stack consistency error (sp: 38, bp: 36) ruby 2.0.0dev (2013-02-25) [x86_64-darwin12.2.0]

-- 崩溃报告日志信息 -------------------------------------------- 请参阅以下之一下的崩溃报告日志文件:* ~/Library/Logs/CrashReporter*/Library/Logs/CrashReporter* ~/Library/Logs/DiagnosticReports*/Library/Logs/DiagnosticReports 的更多细节.

-- Crash Report log information -------------------------------------------- See Crash Report log file under the one of following: * ~/Library/Logs/CrashReporter * /Library/Logs/CrashReporter * ~/Library/Logs/DiagnosticReports * /Library/Logs/DiagnosticReports the more detail of.

-- 控制帧信息 ----------------------------------------------- c:0006 p:0038 s:0038 e:000037 类/Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:111c:0005 p:0035 s:0034 e:000033 班级/Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:107 c:0004 p:0009s:0032 e:000031 顶部
/Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:85 [FINISH] c:0003p:---- s:0030 e:000029 CFUNC :require c:0002 p:0098 s:0026 E:000f88EVAL ./tool/mkconfig.rb:11 [FINISH] c:0001 p:0000 s:0002 E:0017a8顶部 [完成]

-- Control frame information ----------------------------------------------- c:0006 p:0038 s:0038 e:000037 CLASS /Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:111 c:0005 p:0035 s:0034 e:000033 CLASS /Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:107 c:0004 p:0009 s:0032 e:000031 TOP
/Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:85 [FINISH] c:0003 p:---- s:0030 e:000029 CFUNC :require c:0002 p:0098 s:0026 E:000f88 EVAL ./tool/mkconfig.rb:11 [FINISH] c:0001 p:0000 s:0002 E:0017a8 TOP [FINISH]

./tool/mkconfig.rb:11:in

'./tool/mkconfig.rb:11:inrequire'/Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:85:in <top(必填)>'/Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:107:in'/Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:111:in`'

./tool/mkconfig.rb:11:in <main>' ./tool/mkconfig.rb:11:inrequire' /Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:85:in <top (required)>' /Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:107:in ' /Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:111:in `'

-- 其他运行时信息 -----------------------------------------------

-- Other runtime information -----------------------------------------------

  • 加载的脚本:./tool/mkconfig.rb

  • Loaded script: ./tool/mkconfig.rb

加载的功能:

0 enumerator.so

0 enumerator.so

[注意] 您可能在 Ruby 解释器或扩展库.欢迎报告错误.详情:http://www.ruby-lang.org/bugreport.html

[NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html

make:* [.rbconfig.time] 中止陷阱:6

make: * [.rbconfig.time] Abort trap: 6

这是我编译日志的开头:

This is the beginning of my compiling log:

[2013-02-24 20:58:47] 制作 CC =/usr/bin/gcc-4.2 LD = ld LDSHARED=/usr/bin/gcc-4.2 -dynamiclib CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-括号 -Wno-long-long -Wno-missing-field-初始值设定项 -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -fno-common -pipe XCFLAGS= -include ruby​​/config.h -include ruby​​/missing.h -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_SELECTRANTLIMITED-I.ext/include/x86_64-darwin12.2.0 -I./include -I.DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -install_name/Users/boti/.rvm/rubies/ruby-head/lib/libruby.2.0.0.dylib-current_version 2.0.0 -compatibility_version 2.0.0 -fstack-protector -Wl,-u,_objc_msgSend -fstack-protector -Wl,-u,_objc_msgSend SOLIBS =

[2013-02-24 20:58:47] make CC = /usr/bin/gcc-4.2 LD = ld LDSHARED = /usr/bin/gcc-4.2 -dynamiclib CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -fno-common -pipe XCFLAGS = -include ruby/config.h -include ruby/missing.h -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I. -I.ext/include/x86_64-darwin12.2.0 -I./include -I. DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -install_name /Users/boti/.rvm/rubies/ruby-head/lib/libruby.2.0.0.dylib -current_version 2.0.0 -compatibility_version 2.0.0 -fstack-protector -Wl,-u,_objc_msgSend -fstack-protector -Wl,-u,_objc_msgSend SOLIBS =

我将不胜感激...

推荐答案

试试这个:

CC=clang rvm reinstall 2.0.0-p0

它会编译,但稍后可能会导致其他错误(我正在努力寻找导致原始问题的原因).

it will compile but might result in other errors later (I'm working on finding what causes the original issue).

这篇关于使用 rvm 安装 ruby​​2 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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