2014-01-13 70 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到旧的位置(是的,在系统安装时需要)。