在 Ubuntu 上安装 RVM [英] Installing RVM on Ubuntu
问题描述
当我尝试运行这个 rvm 安装脚本(新安装的 ubuntu 11.10)时出现一个奇怪的错误:
I've got a strange error when I try to run this rvm install script (newly installed ubuntu 11.10):
bash <<(curl -s https://rvm.beginrescueend.com/install/rvm)
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
我明白了:
mkdir: 无法创建目录:/usr/share/ruby-rvm/src"
mkdir: cannot create directory: "/usr/share/ruby-rvm/src"
问题是,我想在我的 $HOME 上安装一个 per-user rvm,并且不明白这个脚本想要什么 /usr/share/ruby-rvm
.
The problem is, I want to install a per-user rvm to my $HOME, and dont understand what this script wants with /usr/share/ruby-rvm
.
我需要 $HOME/.rvm
目录中的 rvm.
I need my rvm at $HOME/.rvm
directory.
我检查了没有带有 $rvm_
前缀的环境变量.
I've got no env variable with $rvm_
prefix, I checked.
推荐答案
您可能已经安装了 debian 打包的 rvm.你可以先用:
You may have installed the debian packaged rvm. You can clean it first with:
$ sudo apt-get --purge remove ruby-rvm
这篇关于在 Ubuntu 上安装 RVM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!