声明:我是使用root 帐户安装的。。安装的是 多用户,所以直接安装在 /usr/local/rvm下面
Ubuntu 的 Shell语言用的是Bash Shell
1.参考:rvm.io 官网
直接使用 curl -L get.rvm.io | bash -s stable 命令 是不行的。来自: https://rvm.io/rvm/install/
提示:bash : curl: command not found
1.1安装或开启curl
=》sudo apt-get install curl (会自动安装 libcurl3)
=》sudo apt-get install git-core (顺便也 安装一下了 git)
注明:Curl有一大堆有用的功能,比如:代理、用户登录、FTP上传、http上传、暂停等等,还有一些其他的下载管理工具:wget Gwget这些最常见的 http(s)和ftp下载的工具.
=》再次运行 curl -L get.rvm.io | bash -s stable
提示安装成功,自动安装在 /usr/local/rvm/ 下面,自动创建了system user group : rvm
2.其它的 安装rvm 的命令
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
两个 << 中间有空格的。
3.rvm安装ruby的各版本
=》 rvm list (查看版本信息):提示rvm : command not found
4.如何卸载rvm
来自: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下root用户下的rvm安装
猜你喜欢
转载自sitoto.iteye.com/blog/1541686
今日推荐
周排行