簡體   English   中英

RVM:如何更改默認路徑到主目錄?

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

我在使用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

您可以通過執行此腳本來刪除所有跟蹤

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

確保重新啟動計算機以清除所有指向舊位置的環境變量(是的,在進行系統安裝時是必需的)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM