[英]trouble with installing rvm in ubuntu
我剛剛使用以下命令在我的機器上安裝了rvm
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
並在我的終端得到這個
Installation of RVM to /home/rahul/.rvm/ is complete.
當我去/home/rahul/.rvm/
,我能夠看到所有必要的文件夾但是當我在終端中給出rvm命令時,我收到此錯誤
rvm --version
No command 'rvm' found, but there are 19 similar ones
rvm: command not found
我該如何解決?
編輯
我還在我的bashrc中添加了以下行
if [[ -n "$PS1" ]]; then
if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm ; fi
fi
實際上在安裝rvm之后,你必須運行腳本。 我被困在與你相同的水平,而不是終端我讀到這一行:
“要開始使用RVM,您需要運行source /usr/local/rvm/scripts/rvm
”
所以將此命令( source /usr/local/rvm/scripts/rvm
)放入終端並輸入
在那之后 :
type rvm | head -1
rvm is a function (this you will see hopefully)
你重裝了shell還是打開了一個新的終端窗口?
您是否按照RVM安裝頁面上的診斷信息,特別是“安裝故障排除”部分,檢查RVM是否被稱為功能? 你應該看到這樣的東西:
user$ type rvm | head -1
rvm is a function
你應該在~/.bashrc
添加[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
,然后重啟終端。
打開終端轉到Edit
> Profile Preferences
單擊Title and Command
選項卡,然后選中Run command as login shell
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.