RVM:如何更改主目录的默认路径?

时间:2014-01-13 06:25:05

标签: ruby rvm

我在使用RVM时遇到此错误

kithokit@14: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

1 个答案:

答案 0 :(得分: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

确保重新启动计算机以摆脱指向旧位置的任何环境变量(是的,在系统安装的情况下是必需的。)