我知道其他人有安裝RVM的問題,但我已經看過他們的問題/答案,並沒有幫助。我使用Ubuntu 11.10,和我在這裏按照快速安裝方向:https://rvm.beginrescueend.com/rvm/install/RVM安裝失敗,沒有修復似乎工作
第一步工作得很好:
~$ 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,最後得到的東西去。有沒有人有建議?我真的很感激它。
+ 1但是爲了解決這個問題,sudo gedit〜/ .bash_profile在那裏添加source〜/ .profile行。 – gotqn 2013-04-27 09:59:02