RVM: how to change default path to home directory?

十年热恋 提交于 2019-12-11 22:46:13

问题


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


回答1:


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

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).



来源:https://stackoverflow.com/questions/21085092/rvm-how-to-change-default-path-to-home-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!