web-dev-qa-db-fra.com

Comment désinstaller rvm, Ruby, Rails et gemmes. Je reçois des erreurs sur Mavericks

Je suis nouveau sur Ruby on Rails et j'ai des problèmes de configuration. Je ne sais pas quoi faire. J'ai installé plusieurs fois Ruby, = Rails et Gems car signalent des problèmes. J'ai lu beaucoup de questions sur le débordement de pile et rien à résoudre. J'essaie maintenant de tout désinstaller et j'ai des erreurs lorsque j'essaie de supprimer Gems,:

Je signale quelques problèmes sur le terminal et je ne sais pas comment envoyer un journal, etc. C'est correct pour la désinstallation:

Supprimer les gemmes: $ gem clean -Désinstaller Ruby: $ rvm uninstall Ruby (#this va désinstaller tous les Ruby installés?) ou besoin de: -Désinstaller par version:

$ rvm uninstall 2.1.0 

et autres versions 2.0.0 et 2.1.1

-Désinstaller rvm:

$ rvm repair
$ rvm cleanup
$ rvm implode

et pour l'instant tout réinstaller!?

Quand j'essaye, j'ai ceci:

MacBook-Pro-de-Romenig:~ romenig$ gem clean
Cleaning up installed gems...
Clean Up Complete
MacBook-Pro-de-Romenig:~ romenig$ cd ~
MacBook-Pro-de-Romenig:~ romenig$ Ruby -v
Ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
MacBook-Pro-de-Romenig:~ romenig$ Ruby lis
Ruby: No such file or directory -- lis (LoadError)
MacBook-Pro-de-Romenig:~ romenig$ Ruby list
Ruby: No such file or directory -- list (LoadError)
MacBook-Pro-de-Romenig:~ romenig$ Ruby list
Ruby: No such file or directory -- list (LoadError)
MacBook-Pro-de-Romenig:~ romenig$ rvm Ruby list
Please note that `rvm Ruby ...` was removed, try `Ruby list ` or `rvm all do Ruby list ` instead. ( see: 'rvm usage' )
MacBook-Pro-de-Romenig:~ romenig$ gem list

*** LOCAL GEMS ***

bundler (1.5.3)
CFPropertyList (2.2.0)
libxml-Ruby (2.6.0)
nokogiri (1.5.6)
sqlite3 (1.3.7)
MacBook-Pro-de-Romenig:~ romenig$ gem clean
Cleaning up installed gems...
Clean Up Complete
MacBook-Pro-de-Romenig:~ romenig$ rvm uninstall Ruby
Please note that `rvm Ruby ...` was removed, try `Ruby  ` or `rvm all do Ruby  ` instead. ( see: 'rvm usage' )
MacBook-Pro-de-Romenig:~ romenig$ rvm list

rvm rubies

   Ruby-2.0.0-p353 [ x86_64 ]
 * Ruby-2.1.0 [ x86_64 ]
   Ruby-2.1.1 [ missing bin/Ruby ]
   Ruby-2.1.1-Rails [ x86_64 ]

# => - current
# =* - current && default
#  * - default

MacBook-Pro-de-Romenig:~ romenig$ rvm all do uninstall Ruby
You must be root to run this tool.
You must be root to run this tool.
You must be root to run this tool.
You must be root to run this tool.
MacBook-Pro-de-Romenig:~ romenig$ Sudo rvm all do uninstall Ruby
Password:
URL is not uninstallable: Ruby
URL is not uninstallable: Ruby
URL is not uninstallable: Ruby
URL is not uninstallable: Ruby
MacBook-Pro-de-Romenig:~ romenig$ rvm uninstall 2.1.0
Ruby-2.1.0 - #removing rubies/Ruby-2.1.0.......................................|
Error running '__rvm_rm_rf /Users/romenig/.rvm/rubies/Ruby-2.1.0',
showing last 15 lines of /Users/romenig/.rvm/log/1395265139_Ruby-2.1.0/remove.rubies.log
rm: /Users/romenig/.rvm/rubies/Ruby-2.1.0/lib/Ruby/gems/2.1.0/gems/tzinfo-0.3.39/test/ts_all.rb: Permission denied
rm: /Users/romenig/.rvm/rubies/Ruby-2.1.0/lib/Ruby/gems/2.1.0/gems/tzinfo-0.3.39/test: Permission denied
rm: /Users/romenig/.rvm/rubies/Ruby-2.1.0/lib/Ruby/gems/2.1.0/gems/tzinfo-0.3.39/tzinfo.gemspec: Permission denied
rm: /Users/romenig/.rvm/rubies/Ruby-2.1.0/lib/Ruby/gems/2.1.0/gems/tzinfo-0.3.39: Directory not empty
rm: /Users/romenig/.rvm/rubies/Ruby-2.1.0/lib/Ruby/gems/2.1.0/gems: Directory not empty
rm: /Users/romenig/.rvm/rubies/Ruby-2.1.0/lib/Ruby/gems/2.1.0: Directory not empty
rm: /Users/romenig/.rvm/rubies/Ruby-2.1.0/lib/Ruby/gems: Directory not empty
rm: /Users/romenig/.rvm/rubies/Ruby-2.1.0/lib/Ruby: Directory not empty
rm: /Users/romenig/.rvm/rubies/Ruby-2.1.0/lib: Directory not empty
rm: /Users/romenig/.rvm/rubies/Ruby-2.1.0: Directory not empty
++ typeset ret=1
++ rvm_debug '__rvm_rm_rf error removing target dir '\''/Users/romenig/.rvm/rubies/Ruby-2.1.0'\''.'
++ ((  0  ))
++ return 0
++ return 1

Mes informations RMV:

MacBook-Pro-de-Romenig:~ romenig$ rvm info

system:

  system:
    uname:       "Darwin MacBook-Pro-de-Romenig.local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64"
    system:      "osx/10.9/x86_64"
    bash:        "/bin/bash => GNU bash, version 3.2.51(1)-release (x86_64-Apple-darwin13)"
    zsh:         "/bin/zsh => zsh 5.0.2 (x86_64-Apple-darwin13.0)"

  rvm:
    version:      "rvm 1.25.20 (master) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]"
    updated:      "3 hours 21 minutes 47 seconds ago"
    path:         "/Users/romenig/.rvm"

  homes:
    gem:          "not set"
    Ruby:         "not set"

  binaries:
    Ruby:         "/usr/bin/Ruby"
    irb:          "/usr/bin/irb"
    gem:          "/usr/bin/gem"
    rake:         "/usr/bin/rake"

  environment:
    PATH:         "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/mysql/bin:/Users/romenig/.rvm/bin"
    GEM_HOME:     ""
    GEM_PATH:     ""
    MY_Ruby_HOME: ""
    IRBRC:        ""
    RUBYOPT:      ""
    gemset:       ""


$ gem list

*** LOCAL GEMS ***

bundler (1.5.3)
CFPropertyList (2.2.0)
libxml-Ruby (2.6.0)
nokogiri (1.5.6)
sqlite3 (1.3.7)

rvm gemset list

gemsets for system (found in /Users/romenig/.rvm/gems/system)
=> (default)
   *
14
rld

Il suffit de supprimer le dossier rvm (pour supprimer rvm, rubis, gemmes, etc.)

rm -rf ~/.rvm 

ou

rvm implode
23
Artyom Zankevich