目前我在下面安装了rvm /home/john/.rvm
/home/john/.rvm
如何将rvm移到该位置/opt/local/rvm?
/opt/local/rvm
我尝试使用rvmrc文件来解决此问题(根据此处的rvm文档:https ://rvm.io/workflow/rvmrc/ ),但是没有运气,我rvmrc在下面找到了一个文件/etc/
rvmrc
/etc/
我可以遵循任何分步说明吗?
通过在线研究找出自己,希望这可以帮助某人:
假设您要从home/username/.rvm移至/opt/local/rvm
home/username/.rvm
.bash_profile
.bashrc
if [ -s "$HOME/.rvmrc" ]; then source "$HOME/.rvmrc" fi # to have $rvm_path defined if set if [ -s "${rvm_path-$HOME/.rvm}/scripts/rvm" ]; then source "${rvm_path-$HOME/.rvm}/scripts/rvm" fi
.rvmrc
$HOME/.rvmrc
export rvm_path=/opt/local/rvm
mv $HOME/.rvm/* /opt/local/rvm
rvm repair all
rvm reload
而且你很好走!