[b]声明:我是使用root 帐户安装的。。安装的是 多用户,所以直接安装在 /usr/local/rvm下面[/b]
Ubuntu 的 Shell语言用的是Bash Shell
[size=x-large]1.参考:rvm.io 官网[/size]
直接使用 curl -L get.rvm.io | bash -s stable 命令 是不行的。来自: https://rvm.io/rvm/install/
[b]提示:bash : curl: command not found[/b]
[size=large]1.1安装或开启curl[/size]
=》sudo apt-get install curl (会自动安装 libcurl3)
=》sudo apt-get install git-core (顺便也 安装一下了 git)
[i]注明:Curl有一大堆有用的功能,比如:代理、用户登录、FTP上传、http上传、暂停等等,还有一些其他的下载管理工具:wget Gwget这些最常见的 http(s)和ftp下载的工具.[/i]
=》再次运行 curl -L get.rvm.io | bash -s stable
[b]提示安装成功,自动安装在 /usr/local/rvm/ 下面,自动创建了system user group : rvm[/b]
[size=x-large]2.其它的 安装rvm 的命令[/size]
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
[b]两个 << 中间有空格的。[/b]
[size=x-large]3.rvm安装ruby的各版本[/size]
=》 rvm list (查看版本信息):提示rvm : command not found
[size=x-large]4.如何卸载rvm[/size]
来自:http://stackoverflow.com/questions/3558656/how-to-remove-rvm-ruby-version-manager-from-my-system
There's a simple command built-in that will pull it:
rvm implode
This will remove the rvm/ directory and all the rubies built within it. In order to remove the final trace of rvm, you need to remove the rvm gem, too:
gem uninstall rvm
If you've made modifications to your PATH you might want to pull those, too. Check your .bashrc, .profile and .bash_profile files, among other things.
You may also have an /etc/rvmrc file, or one in your home directory ~/.rvmrc that may need to be removed as well.
Ubuntu 的 Shell语言用的是Bash Shell
[size=x-large]1.参考:rvm.io 官网[/size]
直接使用 curl -L get.rvm.io | bash -s stable 命令 是不行的。来自: https://rvm.io/rvm/install/
[b]提示:bash : curl: command not found[/b]
[size=large]1.1安装或开启curl[/size]
=》sudo apt-get install curl (会自动安装 libcurl3)
=》sudo apt-get install git-core (顺便也 安装一下了 git)
[i]注明:Curl有一大堆有用的功能,比如:代理、用户登录、FTP上传、http上传、暂停等等,还有一些其他的下载管理工具:wget Gwget这些最常见的 http(s)和ftp下载的工具.[/i]
=》再次运行 curl -L get.rvm.io | bash -s stable
[b]提示安装成功,自动安装在 /usr/local/rvm/ 下面,自动创建了system user group : rvm[/b]
[size=x-large]2.其它的 安装rvm 的命令[/size]
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
[b]两个 << 中间有空格的。[/b]
[size=x-large]3.rvm安装ruby的各版本[/size]
=》 rvm list (查看版本信息):提示rvm : command not found
[size=x-large]4.如何卸载rvm[/size]
来自:http://stackoverflow.com/questions/3558656/how-to-remove-rvm-ruby-version-manager-from-my-system
There's a simple command built-in that will pull it:
rvm implode
This will remove the rvm/ directory and all the rubies built within it. In order to remove the final trace of rvm, you need to remove the rvm gem, too:
gem uninstall rvm
If you've made modifications to your PATH you might want to pull those, too. Check your .bashrc, .profile and .bash_profile files, among other things.
You may also have an /etc/rvmrc file, or one in your home directory ~/.rvmrc that may need to be removed as well.