[英]Error installing Ruby 1.9.3 using RVM
我正在嘗試安裝Ruby 1.9.3。
我在跑步:
錯誤
ruby-1.9.3-p125 - #compiling
Error running 'make ', please read /Users/zaikshev88/.rvm/log/ruby-1.9.3-p125/make.log
There has been an error while running make. Halting the installation.
make.log里
[2012-03-16 06:59:48] make
CC = clang
LD = ld
LDSHARED = clang -dynamiclib
CFLAGS = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -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 -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I. -I.ext/include/x86_64-darwin11.3.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -install_name /Users/zaikshev88/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.1.9.1.dylib -current_version 1.9.1 -compatibility_version 1.9.1 -Wl,-unexported_symbol,_Init_* -Wl,-unexported_symbol,*_threadptr_* -Wl,-u,_objc_msgSend
SOLIBS =
linking miniruby
<internal:prelude>:1: [BUG] Bus Error
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0]
-- Control frame information -----------------------------------------------
c:0003 p:0002 s:0006 b:0006 l:000005 d:000005 TOP <internal:prelude>:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0025d8 d:0025d8 TOP
-- Ruby level backtrace information ----------------------------------------
<internal:prelude>:1:in `<compiled>'
-- C level backtrace information -------------------------------------------
See Crash Report log file under ~/Library/Logs/CrashReporter or
/Library/Logs/CrashReporter, for the more detail of.
-- Other runtime information -----------------------------------------------
* Loaded script: ./miniruby
* Loaded features:
0 enumerator.so
[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] Abort trap: 6
Ruby 1.9.3對基於clang的編譯器有實驗性的支持,盡管隨着新版本的發布它變得越來越嚴重。 p125本應該解決崩潰,但你不是第一個看到失敗的人。
相反,我建議您安裝Apple GCC-without-LLVM,例如Macports apple-gcc-42
或brew apple-gcc-42
,然后使用它來編譯Ruby。 (這也有一個優點,它適用於Ruby 1.9.2及更早版本,適用於第三方寶石,沒有segfaults。)
您也可以使用osx-gcc-installer來安裝非LVM gcc-4.2,它也適用於此處。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.