安装RVM时权限被拒绝

时间:2013-05-17 18:08:42

标签: rvm

我正在尝试安装rvm。我打字:

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

我得到了以下

screen shot of result

更新:

现在正在运作。我的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.

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

您的/usr/local目录已锁定(可能)根目录。要解决这个问题,请运行以下行:

sudo chown -R `whoami` /usr/local

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