2014-03-12 5 views
3

ruby ​​1.9.3-p545 또는 ruby-2.1.0 또는 ruby-2.1.1을 설치하려고하지만 실패합니다 ...rvm을 사용하여 OS_X 10.9에서 루비 2.1.0을 설치하는 방법은 무엇입니까? (osx/10.9/x86_64/ruby에서 사용할 수있는 이진 루비 없음)

내 환경 :

  • OS_X 10.9 x86_64의 터미널에서
  • RVM 1.25.20

오류 :

 

bmalets$ rvm install 1.9.3-p545 
Searching for binary rubies, this might take some time. 
No binary rubies available for: osx/10.9/x86_64/ruby-1.9.3-p545. 
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. 
Checking requirements for osx_port. 
Installing macports......................................................bmalets password required for 'make install': 
...................... 
Installing requirements for osx_port. 
Updating system............ 
Error running 'requirements_osx_port_update_system ruby-1.9.3-p545', 
showing last 15 lines of /Users/bmalets/.rvm/log/1394647562_ruby-1.9.3-p545/update_system.log 
checking Mac OS X version... 10.9.2 
checking Xcode location... /Applications/Xcode.app/Contents/Developer 
checking Xcode version... 5.0.2 
checking for gcc... /usr/bin/llvm-gcc-4.2 
checking whether the C compiler works... no 
configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/base': 
configure: error: C compiler cannot create executables 
See `config.log' for more details 
shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/base && CC=/usr/bin/llvm-gcc-4.2 ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install" returned error 77 
DEBUG: Error installing new MacPorts base: shell command failed (see log for details) 
    while executing 
"macports::selfupdate [array get global_options] base_updated" 
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed (see log for details) 
++ return 1 
++ return 1 
Requirements installation failed with status: 1. 
 

도와주세요.

P. , sudo port -v selfupdate, 그것은 명령 줄 도구 :


bmalets$ sudo xcode-select --install 
xcode-select: note: install requested for command line developer tools 
+0

에서 툭하지만, 사실 www.macports.org이 더 이상 결의로 고민입니다. 등록 기관 수수료를 내지 않았습니까? (필자는 Xcode를 선택했다는 것을 말해야합니다. - 설치하고 예상대로 작동했습니다) – tobinjim

답변

9

음을 올려주세요 :

enter image description here

내가 포트를 업데이트하려고 : 나는 너무 실패, 내 명령 줄 도구를 업데이트하려고 나는 비슷한 문제가있다. 그리고 마침내

  • 설치된의 브루

  • 에게 https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-에서 최신 명령 줄 도구를 수동으로 ... 나는 세부 사항에 대해 확실하지 않았다하더라도 실행 rvm requirements을 T_T

    1. 다운로드 그것을 해결하고, 자동으로 일부 패키지를 다운로드합니다. enter image description here

    2. WORK! /usr/bin/llvm-gcc-4.2이 존재하는 경우 컴파일러가 작동하지 않는다는 사실을 바탕으로 enter image description here enter image description here

  • 3

    , 나는 확인. 그렇지 않지만 별칭은/usr/bin/llvm-gcc입니다. /usr/bin/llvm-gcc-4.2 (이 별명 포인트 :는/usr/빈/그 소리) 관리가 실행 RVM 요구 후

    그래서 나는에 별명은/usr/빈/LLVM-GCC를 중복 MacPorts를 설치하십시오.

    3

    나는 OP와 똑같은 문제가있었습니다. 명령 행 도구를 업데이트하고 단말기를 다시 시작한 후, 나는

    $의 RVM 요구 사항
    (파일을 복사하는 것이 필요하다고 있는지 확실하지 않습니다) 다음

    을 파일을 복사하고 실행하여 맥 포트를 설치하는 Bjinse의 의견을 따라

    $ rvm install 1.9.3

    마지막으로 작업했습니다.루비는이에 오류가 발생하면

    그때 그때

    $의 RVM 1.9.3p545 루비 2.1.1

    0

    를 업그레이드 할 수 $의 RVM 목록

    에 설치하는 데, 터미널 말한다 곳

    $ rvm use 1.9.3 
    

    이 작업을 수행 :

    당신 "RVM은 함수가 아닙니다" 다음이

    user$ type rvm | head -n 1 
    

    를 실행하고

    rvm is a function 
    

    를 얻을 경우 문제가 해결 추적

    user$ source ~/.rvm/scripts/rvm 
    

    를 실행해야합니다.

    here 내가 같은 배 종류의이야