安装RVM时出现问题 [英] Problem installing RVM

查看:265
本文介绍了安装RVM时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照rvm网站上的说明执行了命令,但似乎不起作用.

I have executed the commands as prescribed in the instructions at the rvm website but things don't seem to work..

从git存储库中获取代码很顺利,但是当我尝试使用时

Fetching the code from the git repository runs smoothly but when I try to use

 rvm notes

错误:

/usr/local/bin/rvm: line 73: /home/cody/.rvm/scripts/rvm: No such file or directory

多行闪烁,直到我按ctrl + C才停止. 我正在运行Ubuntu 8.04,当前正在运行ruby 1.9.2 .. 抱歉,如果我缺少任何必要的信息.预先感谢.

flashes in multiple lines and doesn't stop till I hit ctrl+C.. I am running Ubuntu 8.04 and currently I am running ruby 1.9.2.. Sorry, if I am missing out any necessary information. Thanks in advance.

推荐答案

Ack,我的意思不是将其发布为对此问题的评论.无论如何,如果我不得不猜测,我会说您使用sudo或root身份安装了rvm.如果是这种情况,请删除它,然后在没有sudo的情况下重新安装:

Ack, I didn't mean to post this as a comment on the question. Anyway, if I had to guess, I'd say you installed rvm using sudo or as root. If that is the case, remove it and reinstall without sudo:

sudo rm -rf $HOME/.rvm $HOME/.rvmrc /etc/rvmrc /etc/profile.d/rvm.sh \
  /usr/local/rvm /usr/local/bin/rvm
sudo /usr/sbin/groupdel rvm # this might fail, it's not that important

打开新的终端窗口/标签,并确保已删除rvm:

Open new terminal window/tab and make sure rvm is removed:

env | grep rvm

输出应该为空,有时需要重新登录,为空后,您可以继续:

The output should be empty, sometimes it's needed to relogin, after it's empty you can continue:

curl -sSL https://get.rvm.io | bash -s stable

对于本地用户来说,它安装得很好.

It works perfectly fine installed for the local user.

这篇关于安装RVM时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆