2014-01-13 104 views
0

我得到這個錯誤使用RVMRVM:如何將默認路徑更改爲主目錄?

[email protected]:22:59 ~ $ rvm install 1.9.3 
mkdir: cannot create directory ‘/usr/local/rvm/log/ruby-1.9.3-p448’: Permission denied 
Could not detect ruby version/name for installation, please be more specific. 

如何更改默認的目錄/home/kithokit/.rvm

+0

@majioa:你好,謝謝!但是我已經更新了我的答案,這個答案對於問題的需要更具體 –

回答

1

你可以通過執行這個腳本

#!/bin/bash 
/usr/bin/sudo rm -rf $HOME/.rvm $HOME/.rvmrc /etc/rvmrc /etc/profile.d/rvm.sh /usr/local/rvm /usr/local/bin/rvm 
/usr/bin/sudo /usr/sbin/groupdel rvm 
/bin/echo "RVM is removed. Please check all .bashrc|.bash_profile|.profile|.zshrc for RVM source lines and delete 
or comment out if this was a Per-User installation." 
刪除所有跟蹤

來自https://rvm.io/support/troubleshooting#sudo

確保重新啓動機器以擺脫任何指向o的環境變量ut到舊的位置(是的,在系統安裝時需要)。