【发布时间】:2012-03-02 16:49:11
【问题描述】:
我知道其他人在安装 RVM 时遇到了问题,但我查看了他们的问题/答案,但没有任何帮助。我使用的是 Ubuntu 11.10,并按照此处的快速安装说明进行操作:https://rvm.beginrescueend.com/rvm/install/
第一步效果很好:
~$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 125 100 125 0 0 909 0 --:--:-- --:--:-- --:--:-- 1524
100 799k 100 799k 0 0 1059k 0 --:--:-- --:--:-- --:--:-- 1059k
Upgrading the RVM installation in /home/nsmith/.rvm/
RVM sourcing line found in: /home/nsmith/.bash_history.
Upgrade Notes:
* No new notes to display.
# RVM: Shell scripts enabling management of multiple ruby environments.
# RTFM: https://rvm.beginrescueend.com/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Screencast: http://screencasts.org/episodes/how-to-use-rvm
# In case of any issues read output of 'rvm requirements' and/or 'rvm notes'
Upgrade of RVM in /home/nsmith/.rvm/ is complete.
# nsmith,
#
# Thank you for using RVM!
# I sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne
可爱。第 2 步也运行良好,没有输出。第三步返回:
The program 'rvm' is currently not installed. You can install it by typing:
sudo apt-get install ruby-rvm
据我所知,这可能是因为我最初使用 sudo 尝试了第一步,结果搞砸了。我很可能上钩并使用sudo apt-get install ruby-rvm 进行安装,从而进一步搞砸了事情,这显然已经过时或损坏了。
寻找答案让我:
http://beginrescueend.com/support/troubleshooting/
执行“如何从系统中彻底清除 RVM 的所有痕迹,包括系统范围的安装?”部分中概述的 .sh 文件的位置。我还按照说明检查了 .bashrc、.bash_profiles、.profiles 等是否有 rvm 提及并将它们删除。
我还尝试了在 StackOverflow 问题“如何在 ubuntu 上卸载 Ruby?”中找到的答案。即sudo aptitude purge ruby,然后,因为我实际上还没有红宝石,sudo aptitude purge ruby-rvm。我也试过sudo apt-get purge ruby-rvm
最后,我尝试了@mkoby.com 上题为“完全移除-rvm”的说明。这基本上是说删除 .rvm* 文件并运行sudo groupdel rvm
我已经尝试很多从我的系统中删除 rvm,以便我可以运行全新安装,无需 sudo,最终让事情顺利进行。有人有建议吗?我真的很感激。
【问题讨论】:
标签: ruby installation rvm ubuntu-11.10