2017-03-16 19 views
0

내 컴퓨터 (osx mountain lion)에 이전 버전의 루비를 설치하는 데 문제가 있습니다. 문제가 XCODE 함께 같은Mac에서 10.8을 RVM으로 설치 10.8 RVM을 사용하여 컴파일

$ rvm install 1.8.7 

Warning! Requested ruby installation which requires another ruby available - installing ruby-1.8.7-p374 first. 

ruby-1.8.7-p374 - #removing src/ruby-1.8.7-p374.. 
Checking requirements for osx. 
Certificates in '/opt/twitter/etc/openssl/cert.pem' are already up to date. 
Requirements installation successful. 
Installing Ruby from source to: /Users/mshahriarinia/.rvm/rubies/ruby-1.8.7-p374, this may take a while depending on your cpu(s)... 
ruby-1.8.7-p374 - #downloading ruby-1.8.7-p374, this may take a while depending on your connection... 
ruby-1.8.7-p374 - #extracting ruby-1.8.7-p374 to /Users/mshahriarinia/.rvm/src/ruby-1.8.7-p374.... 
ruby-1.8.7-p374 - #applying patch /Users/mshahriarinia/.rvm/patches/ruby/1.8.7/stdout-rouge-fix.patch. 
ruby-1.8.7-p374 - #applying patch /Users/mshahriarinia/.rvm/patches/ruby/1.8.7/no_sslv2.diff. 
ruby-1.8.7-p374 - #applying patch /Users/mshahriarinia/.rvm/patches/ruby/GH-488.patch. 
ruby-1.8.7-p374 - #applying patch /Users/mshahriarinia/.rvm/patches/ruby/ssl_no_ec2m.patch. 
ruby-1.8.7-p374 - #configuring............................... 
ruby-1.8.7-p374 - #post-configuration. 
ruby-1.8.7-p374 - #compiling............ 
Error running '__rvm_make -j 1', 
showing last 15 lines of /Users/mshahriarinia/.rvm/log/1489619955_ruby-1.8.7-p374/make.log 
numeric.c: In function 'flo_is_finite_p': 
numeric.c:1238:5: warning: 'finite' is deprecated (declared at /opt/twitter/Cellar/[email protected]/4.9.4/lib/gcc/4.9/gcc/x86_64-apple-darwin15.6.0/4.9.4/include-fixed/ math.h:772) [-Wdeprecated-declarations] 
    if (!finite(value)) 
    ^
{standard input}:4857:suffix or operands invalid for `movq' 
{standard input}:4860:suffix or operands invalid for `movq' 
{standard input}:4869:suffix or operands invalid for `movq' 
{standard input}:4885:suffix or operands invalid for `movq' 
{standard input}:4889:suffix or operands invalid for `movq' 
{standard input}:4896:suffix or operands invalid for `movq' 
{standard input}:4898:suffix or operands invalid for `movq' 
{standard input}:4900:suffix or operands invalid for `movq' 
{standard input}:4914:suffix or operands invalid for `movq' 
make: *** [numeric.o] Error 1 
+++ return 2 
There has been an error while running make. Halting the installation. 

To proceed rvm requires a ruby-1.8.7-p374 compatible ruby is installed. 
We attempted to install it automatically but it failed with status 2. 
Please install it manually (or a compatible alternative) to proceed. 
+0

Ruby 1.8.7이 작동하지 않으므로이 시점에서 아무 것도 실행하지 못하게 될 수 있습니다. 실제로 사용해야하는 경우 VM에서 10.7을 돌리면 도움이 될 수 있습니다. 마지막으로 할 일은 [Vagrant] (http://vagrantup.com)에서 정말 오래된 리눅스 배포판을 사용해야했고 더 이상 패키지를 설치할 수 없기 때문에 짜증이났습니다. 저장소는 다음과 같습니다. 끊다. 한 가지 시도는'rbenv'를 대신 사용하는 것입니다. – tadman

+0

이 특정 버전에 대한 엄격한 종속 관계가 없으며 모든 루비가 작동합니다. 방금 이걸 골랐어 –

+0

1.8.3보다 1.9.3의 행운이 많을 것입니다. 요구 사항에 맞는 최신 버전. – tadman

답변

1

가 보이는 : 사람이 컴파일 문제를 해결하는 방법에 대한 아이디어를 가지고 있는지 궁금 해서요. 당신은 실행하여, XCODE을 오래된 경우 확인 : XCODE이없는 경우

softwareupdate --list 

XCODE 경우가 그렇지 않은 경우

softwareupdate --install <product name> 

에 의해에게 오래된 업데이트하십시오되어 실행하여 설치한다 :

xcode-select --install 

소스를 : https://github.com/rvm/rvm/issues/3577

+0

xcode는 최대 날짜입니다 : $ softwareupdate --list 소프트웨어 업데이트 도구 저작권 2002-2015 Apple Inc. 사용 가능한 소프트웨어 찾기 새 소프트웨어를 사용할 수 없습니다. –

+0

당신이 의미하는 것이 확실하지 않습니다 –

+0

터미널에서'open -a Xcode'를 실행하여 xcode 창을 얻을 수 있습니까? – harshs08