2013-10-22 5 views
3

XCode 명령 줄 개발자 도구를 설치하고 ruby-1.9.3-p448ruby-2.0.0-p247을 설치해야합니다.OS X 10.8.5에서 rvm을 사용하여 ruby-1.9.3-p194 설치

[2013-10-22 09:23:22] __rvm_make 
__rvm_make() 
{ 
    \make "[email protected]" || return $? 
} 
current path: /Users/michaelirey/.rvm/src/ruby-1.9.3-p194 
command(3): __rvm_make -j 1 
    CC = gcc 
    LD = ld 
    LDSHARED = gcc -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-darwin12.5.0 -I./include -I. 
    DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -install_name /Users/michaelirey/.rvm/rubies/ruby-1.9.3-p194/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 = 
compiling regparse.c 
regparse.c:582:15: error: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32] 
    return t->num_entries; 
    ~~~~~~ ~~~^~~~~~~~~~~ 
1 error generated. 
make: *** [regparse.o] Error 1 

나는 또한 시도 : 다음으로 rvm install ruby-1.9.3-p194 --with-gcc=clang

여기

Error running '__rvm_make -j 1', 
please read /Users/michaelirey/.rvm/log/1382458979_ruby-1.9.3-p194/make.log 
There has been an error while running make. Halting the installation. 

해당 파일의 출력입니다 : 내가 rvm install ruby-1.9.3-p194을 할 때

, 오류가 발생합니다 동일한 결과 ...

답변

2

Are 당신은 당신의 환경 CC=gcc에 필요 - 그 문제를 설명 할 수 - 루비 1.9.3이 (또는 clang)를 구축 할 준비가되지 않았 시도하기 전에 설정을 해제해야합니다 :이 RVM은 자동으로 감지 할 수 있도록해야한다

rvm get stable    # always update rvm first in case of problems 
unset CC     # unset CC to allow autodetection to work 
rvm install ruby-1.9.3-p194 # do not add extra flags 

주어진 루비에 필요한 적절한 GCC가 필요합니다. 그래도 여전히 실패하면 자동 감지를 방지하는 환경이 있거나 버그가 있음을 의미합니다. 버그 보고서를 엽니 다. https://github.com/wayneeseguin/rvm/issues

+0

여전히 문제가되는 것 같습니다. 버그 보고서를 여는 중입니다. –

관련 문제