2013-05-18 118 views
0

我用下面的命令來運行錯誤安裝Ruby包

curl -L https://get.rvm.io | bash -s stable --autolibs=3 --ruby 

然後我收到錯誤 enter image description here

然後我檢查了錯誤,而下方則是安裝日誌,

[2013-05-18 12:11:22] requirements_osx_port_libs_install 
Error: 
Error: No valid Xcode installation is properly selected. 
Error: Please use xcode-select to select an Xcode installation: 
Error:  sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # version 4.6.1 
Error: 
Warning: xcodebuild exists but failed to execute 
Warning: Xcode does not appear to be installed; most ports will likely fail to build. 
---> Computing dependencies for apple-gcc42 
---> Dependencies to be installed: cctools ld64 llvm-3.2 gcc_select 
---> Building llvm-3.2 
Error: org.macports.build for port llvm-3.2 returned: command execution failed 
Error: Failed to install llvm-3.2 
Please see the log file for port llvm-3.2 for details: 
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.2/llvm-3.2/main.log 
Error: The following dependencies were not installed: cctools ld64 llvm-3.2 gcc_select 
To report a bug, follow the instructions in the guide: 
    http://guide.macports.org/#project.tickets 
Error: Processing of port apple-gcc42 failed 
There were package installation errors, make sure to read the log. 

我檢查了我的xcode版本(我仍然訂閱了99美元,如果這意味着什麼的話),它說這個

xcode-select version 2003

如何解決問題?

+0

你有最新版本的xcode嗎?它是4.6.2。如果您正在使用Mountain Lion,可以通過OSX上的appstore完成。 – Kashyap

+0

謝謝你。有關xcode的行消失了。 LLVM 3.2如何?我不知道有什麼錯誤 – user1372829

+0

安裝xcode時安裝了LLVM。它是編譯Ruby所需的C和C++編譯器。 – Kashyap

回答

0

我解決了這個問題。感謝所有的評論。

我昨天晚上安裝了rvm,並且我的網絡連接中斷了。這破壞了安裝。問題出在Xcode上。我卸載然後再次安裝,然後重新安裝rvm,它工作。