rvm installation not working: “RVM is not a functi

2019-01-01 09:41发布

I just installed RVM, but can't make it work. I have such line at the end of my .profile file:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

I tried to run source .profile and restarting terminal, but still, when I run rvm use 1.9.2 I'm getting:

RVM is not a function, selecting rubies with 'rvm use ...' will not work.

My system is Ubuntu 11.10.

标签: ruby rvm
20条回答
梦醉为红颜
2楼-- · 2019-01-01 10:31
source ~/.bash_profile

... should do the trick ..., probably need to logout and login again.

How to reload .bash_profile from the command line?

查看更多
余生无你
3楼-- · 2019-01-01 10:31

I had the same issue and I did this in my .bash_profile and it worked. source "$HOME/.rvm/scripts/rvm".

查看更多
登录 后发表回答