내 컴퓨터 (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.
Ruby 1.8.7이 작동하지 않으므로이 시점에서 아무 것도 실행하지 못하게 될 수 있습니다. 실제로 사용해야하는 경우 VM에서 10.7을 돌리면 도움이 될 수 있습니다. 마지막으로 할 일은 [Vagrant] (http://vagrantup.com)에서 정말 오래된 리눅스 배포판을 사용해야했고 더 이상 패키지를 설치할 수 없기 때문에 짜증이났습니다. 저장소는 다음과 같습니다. 끊다. 한 가지 시도는'rbenv'를 대신 사용하는 것입니다. – tadman
이 특정 버전에 대한 엄격한 종속 관계가 없으며 모든 루비가 작동합니다. 방금 이걸 골랐어 –
1.8.3보다 1.9.3의 행운이 많을 것입니다. 요구 사항에 맞는 최신 버전. – tadman