安装ruby软件包时出错

时间:2013-05-18 04:26:02

标签: rvm

我使用以下命令运行安装

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

如何解决问题?

1 个答案:

答案 0 :(得分:0)

我解决了这个问题。感谢所有评论。

昨晚我正在安装rvm,我的网络连接被切断了。这破坏了安装。问题出在Xcode上。我卸载然后重新安装,然后重新安装rvm,它工作。