简体   繁体   English

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

[英]RVM: how to change default path to home directory?

I got this error on using 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.

How can i change the default directory to /home/kithokit/.rvm 如何将默认目录更改为/home/kithokit/.rvm

You can remove all the trace by executing this script 您可以通过执行此脚本来删除所有跟踪

#!/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."

coming from https://rvm.io/support/troubleshooting#sudo 来自https://rvm.io/support/troubleshooting#sudo

make sure to restart machine to get rid of any environment variables that would point out to the old location (yes it is required in case of playing with system installation). 确保重新启动计算机以清除所有指向旧位置的环境变量(是的,在进行系统安装时是必需的)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM