我知道其他人在安装 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 步也运行良好,没有输出。第 3 步返回:
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,并最终让事情顺利进行。有人有建议吗?我真的很感激。