2013-02-18 2 views
1

Mountain Lion의 RVM을 사용하여 Ruby를 설치하려고하며 gcc = clang을 사용하는 경우에도 make를 실행하는 동안 계속 오류가 발생합니다 (권장 해결책은 다음과 같습니다). 다른 게시물). XCode를 명령 줄 유틸리티가 설치된 상태로 업데이트했습니다.Mac 10.8.2의 RVM Ruby 1.9.3 오류

make.log 내가 GCC를 지정하지 않는 경우

[2013-02-18 17:37:00] make 
    CC = clang 
    LD = ld 
    LDSHARED = clang -dynamic -bundle 
    CFLAGS = -O3 -ggdb -Wall -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 -pipe 
    XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT 
    CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/Users/maraaverick/.rvm/usr/include -I. -I.ext/include/x86_64-darwin12.2.0 -I./include -I. 
    DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace 
    SOLIBS = 
compiling main.c 
compiling dmydln.c 
compiling dmyencoding.c 
compiling version.c 
compiling dmyversion.c 
compiling miniprelude.c 
compiling array.c 
compiling bignum.c 
bignum.c:2732:26: warning: while loop has empty body [-Wempty-body] 
     while (--ny && !zds[ny]); ++ny; 
           ^
bignum.c:2732:26: note: put the semicolon on a separate line to silence this warning 
1 warning generated. 
compiling class.c 
compiling compar.c 
compiling complex.c 
compiling dir.c 
compiling dln_find.c 
compiling enum.c 
compiling enumerator.c 
compiling error.c 
compiling eval.c 
compiling load.c 
compiling proc.c 
compiling file.c 
compiling gc.c 
gc.c:3060:1: warning: unused function 'chain_finalized_object' [-Wunused-function] 
chain_finalized_object(st_data_t key, st_data_t val, st_data_t arg) 
^ 
1 warning generated. 
compiling hash.c 
compiling inits.c 
compiling io.c 
compiling marshal.c 
compiling math.c 
compiling node.c 
compiling numeric.c 
compiling object.c 
compiling pack.c 
compiling parse.c 
compiling process.c 
compiling random.c 
compiling range.c 
compiling rational.c 
compiling re.c 
compiling regcomp.c 
compiling regenc.c 
compiling regerror.c 
compiling regexec.c 
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 

같은이 참 읽고 난하려면 openssl과 권고에 따라 독립 GCC 패키지를 설치하려고하면 here

rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr 

내 지역 GCC를 지정하려고 할 때 나는 내 경로에없는 말하고 있지만 :

$ CC=/opt/local/bin/gcc-apple-4.2 rvm install ruby-1.9.3-p194 --enable-shared --without-tk --without-tcl 
You requested building with '/opt/local/bin/gcc-apple-4.2' but it is not in your path. 

도움을 주시면 감사하겠습니다. 매우 감사합니다.

+0

입니까? 나는 같은 문제가 있다고 생각하고 GCC를 다시 설치하면 –

+0

[ruby 1.9.3을 컴파일 할 수 없음]의 복제본이 도왔습니다. (http://stackoverflow.com/questions/14592945/cannot-compile-ruby-1-9-3) – mpapis

+0

@IlyaCherevkov GCC가 설치되어 있지만 brew install apple-gcc42와 연결되지 않았습니다. 오류 : apple-gcc42-4.2.1-5666.3이 이미 설치되었으므로 연결되지 않았습니다. '문제 일 수 있습니까? 그렇다면 연결에 관한 권장 사항은 무엇인지 모르겠다. – batpigandme

답변

1

당신은 문제 https://stackoverflow.com/a/14594287/497756의 더 나은 설명은 여기 clang되어 사용하고 여기에 (아직 RVM의 머리에) 프로세스를 향상 : 당신은 당신이 GCC가 설치되어 있는지 https://stackoverflow.com/a/14940278/497756

+0

내가 실행할 때 --with-gcc = gcc-4.2 '나는 아직도 make error를 얻었고 (rvm get branch로) 새로운 실험적 방법을 시도해 보았고 (길이에 대한 몇 가지 코드를 삭제해야했다)'. .. 홈 브루를 c98d5049에서 e94eb707로 업데이트했습니다. ==> 업데이트 된 수식 bochs \t지도 서버 노드 \t stunnel texmacs toilet \t tuntap 필수 패키지 설치 : libxml2, libxslt, libksba, curl-ca-bundle. 'requirements_brew_libs_install libxml2 libxslt libksba curl-ca-bundle'을 실행하는 중 오류가 발생했습니다. /Users/maraaverick/.rvm/log/ruby-1.9.3-p385/package_install_libxml2_libxslt_libksba_curl-ca-bundle.log ' – batpigandme

+0

[gist] (https://gist.github.com)을 열고 오류 로그를 열어 [ticket for RVM] (https://github.com/wayneeseguin/rvm/issues) – mpapis

+0

을 열어 주셔서 감사합니다. – batpigandme

관련 문제