ubuntu下root用户下的rvm安装

[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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值