0

我使用以下命令运行安装

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

然后我收到一个错误 在此处输入图像描述

然后我检查了错误,下面是日志,

[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 选择版本 2003

我该如何解决这个问题?

4

1 回答 1

0

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

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

于 2013-05-18T19:03:45.930 回答