0

我正在尝试安装 rvm。我输入:

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

我得到了以下

结果的屏幕截图

更新:

它现在正在工作。我的 Xcode 没有更新。

但现在第二个问题,也是权限被拒绝的是包。说不能安装。日志如下所示,

[2013-05-18 15:37:46] requirements_osx_port_libs_install
--->  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.

我该如何解决这个问题?

4

1 回答 1

1

您的/usr/local目录被锁定为(可能)root。要解决此问题,请运行此行:

sudo chown -R `whoami` /usr/local

它会让你可以写它。这可能是一个问题,但通常不应该。

于 2013-05-17T18:16:14.590 回答