我试图以这种方式安装它:
brew install autoconf brew install automake brew install libyaml rvm install ruby-head
我试图用 rvm 安装 ruby2 但我收到了这个错误:
ruby-head - #compile Error running 'make', please read /Users/boti/.rvm/log/ruby-head/make.log 运行 make 时出错。停止安装。Ruby 'ruby-head' 是使用 clang 构建的 - 但它不(完全)受支持,预计会出现错误。
这是我的编译日志:
编译 ./missing/setproctitle.c 编译 dmyext.c 链接 miniruby /Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:111: [BUG] 堆栈一致性错误 (sp: 38, bp: 36 ) 红宝石 2.0.0dev (2013-02-25) [x86_64-darwin12.2.0]
-- 崩溃报告日志信息 --------------------------------------------------------请参阅以下之一下的崩溃报告日志文件: * ~/Library/Logs/CrashReporter * /Library/Logs/CrashReporter * ~/Library/Logs/DiagnosticReports * /Library/Logs/DiagnosticReports 的更多详细信息。
-- 控制帧信息 --------------------------------------------------------- -- c:0006 p:0038 s:0038 e:000037 类 /Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:111 c:0005 p:0035 s:0034 e:000033 类 /用户/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 [完成] c:0003 p:---- s:0030 e:000029 CFUNC :require c:0002 p:0098 s:0026 E:000f88 EVAL ./tool/mkconfig.rb:11 [完成] c:0001 p:0000 s:0002 E:0017a8 顶部 [完成]./tool/mkconfig.rb:11:in
<main>' ./tool/mkconfig.rb:11:in
需要'<top (required)>' /Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:107:in
/Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:85:in'/Users/boti/.rvm/src/ruby-head /lib/fileutils.rb:111:in `'-- 其他运行时信息 --------------------------------------------------------- --
加载的脚本:./tool/mkconfig.rb
加载的功能:
0 枚举器.so
[注意] 您可能在 Ruby 解释器或扩展库中遇到了错误。欢迎提交错误报告。详情: http ://www.ruby-lang.org/bugreport.html
制作:* [.rbconfig.time] 中止陷阱:6
这是我的编译日志的开始:
[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-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,抑制 -install_name /Users/boti/.rvm/rubies/ruby-head/lib/libruby。
我将不胜感激任何帮助...