2013-02-24 3 views
1

나는 이런 식으로 설치하려고했다와 ruby2 설치하는 동안 로그인 :오류 RVM

:

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]

-- 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.

-- 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 <main>' ./tool/mkconfig.rb:11:in require' /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 -----------------------------------------------

  • Loaded script: ./tool/mkconfig.rb

  • 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

이 내 컴파일 로그의 시작입니다 (내가 원래 문제의 원인을 찾는 중이 야)

CC=clang rvm reinstall 2.0.0-p0 

그것을 컴파일하지만 나중에 다른 오류가 발생할 수 있습니다 6,

[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 =

내가 어떤 도움을 주셔서 감사합니다 것

...

+0

최신 버전의 Xcode와 최신 버전의 명령 줄 도구를 설치 했습니까? – michaelmichael

+0

Uff ... 아니, 지금 당장하고있다. 고마워요 ... – Boti

+0

NP, 내가 컴파일러 오류를 얻고 있다면 내가 바라는 첫 번째 것. 또한 질문을 결과로 업데이트하십시오[email protected] (RVM 릴리스 관리자)의 아래 응답은 RVM이이 문제를 알고 있음을 나타냅니다. – michaelmichael

답변

6

이 시도 .

+0

CC = clang rvm "2.0.0-p0"을 다시 설치하십시오. 버전 '2.0.0'은 루비 인터프리터를 선택하는 것을 혼란스럽게합니다. 알 수없는 패키지를 제거 할 수 없습니다. ' 버전'2.0.0 '은 루비 인터프리터 선택을 혼란스럽게합니다. – Boti

+0

이 작업은 "CC = clang rvm ruby-head를 다시 설치하십시오" – Boti

+0

'rvm get stable'을 실행 한 후에도 작동합니다. – Boti

0

Mac OS X 10.8.2와 Xcode 4.6 및 brew에서 miniruby 주변의 빌드 오류가 발생합니다.

그냥 "RVM 2.0.0 설치"를 실행하려고 결과는 다음과 같습니다

https://gist.github.com/polarapfel/5080946

에/usr/빈/그 소리에, 결과는 다음과 같습니다 CC를 설정하려고 할 때 :

https://gist.github.com/polarapfel/5081054

어느 쪽이든은, 결과는 나에 대해 동일합니다.

여기 재미있는 점이 있습니다. 문제없이 머리를 만들 수 있습니다. 2.0.0p0은 Mac OS X에서 깨끗한 빌드가 아니며 꼬임을 제거하는 데 더 많은 작업이 필요하다고 생각합니다.

-

확인이 나를 위해 그것을했다 : 단순히 "RVM 안정 얻을"빌드 문제를 제거있어 실행.

0

clang 3.0을 clang -v와 함께 사용하고 있는지 확인하십시오. 당신이 이전 연타 버전을 사용하는 경우
그렇지 않으면, 사용 GCC 4.2 2.0.0-P0을 컴파일 :

또한
rvm remove 2.0.0-p0 

하는 것이 있는지 확인하십시오

rvm install ruby --with-gcc=gcc-4.2 

내가 먼저 오래된 루비 시도를 제거하는 것 이것은 miniruby/ENC이 문제를 컴파일 해결해야하는 경우

rvm get head --autolibs=3 

는 다음 2.0.0-P0가 정리 빌드,하지만 당신은 오래된 컴파일러를 사용하고 있습니다 : 당신은 (불안정) RVM 머리를 가지고 . 최신 Xcode를 설치해도 최신 Clang 버전이 반드시 포함되는 것은 아닙니다.