2013-05-17 189 views
0

我正在嘗試安裝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

您的/usr/local dir被鎖定(可能)爲root。要解決此問題,請執行以下操作:

sudo chown -R `whoami` /usr/local 

它會使它成爲可寫的。這可能是一個問題,但通常不應該。

+0

謝謝。有用。 – user1372829

+0

但現在我有這個當我運行它 - 錯誤運行'requirements_osx_port_libs_install蘋果-gcc42 libyaml readline libxml2 libxslt libksba openssl curl-ca-bundle sqlite3 zlib', 請閱讀/Users/ansonzeall/.rvm/log/ruby-2.0。 0-p195/1368849583_package_install_apple-gcc42_libyaml_readline_libxml2_libxslt_libksba_openssl_curl-ca-bundle_sqlite3_zlib.log – user1372829

+0

該日誌文件說什麼? – three