RVM Installation

[亡魂溺海] 提交于 2019-12-12 06:39:27

问题


I am trying to install rvm on ubuntu 11.10. I have installed it using following command through curl.

curl -L get.rvm.io | bash -s stable --auto-dotfiles

On terminal it specifies that rvm has been installed properly and I have checked .rvm directory has been created properly in my home directory and in .rvm directory version file is present but when I write rvm -v on terminal it gives following msg

~$ rvm -v The program 'rvm' is currently not installed. You can install it by typing: sudo apt-get install ruby-rvm

Please help.


回答1:


Did you add the PATH to your .bashrc file?

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

After you added it, reload it:

source ~/.bashrc

EDIT: this is not recommended way of RVM, rvm does shell file initialization, if you need force this process run rvm get head --auto-dotfiles



来源:https://stackoverflow.com/questions/13192730/rvm-installation

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