RVM安装失败,似乎没有修复工作

And*_*ber 2 ruby install rvm ubuntu-11.10

我知道其他人在安装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
Run Code Online (Sandbox Code Playgroud)

可爱.第2步也运行正常,没有输出.第3步返回:

The program 'rvm' is currently not installed.  You can install it by typing:
sudo apt-get install ruby-rvm
Run Code Online (Sandbox Code Playgroud)

从我发现的,这可能是因为我最初尝试使用sudo的第一步,并搞砸了一切.我可能会通过饵和安装来进一步搞砸sudo apt-get install ruby-rvm,这显然是过时的或破碎的.

寻找答案让我:

http://beginrescueend.com/support/troubleshooting/

我在哪里执行下节所述的sh文件"如何彻底从我的系统清理掉RVM的所有痕迹,包括对全系统的安装?" 我也跟着指示和检查的.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,最后让事情继续下去.有没有人有建议?我真的很感激.

Cor*_*ren 7

修复一次:

$ source ~/.profile
$ rvm
Run Code Online (Sandbox Code Playgroud)

总是要修复它,正如gotqn所说,你可以在〜/ .bash_profile的末尾添加它

$ echo ". .profile" >> ~/.bash_profile
Run Code Online (Sandbox Code Playgroud)