2010-06-18 5 views
1

Je n'arrive pas à supprimer une gemme de mon système. Quand je demande à petit bijou où RedCloth est installé, il dit ceci:Impossible de désinstaller sudo gem (vous n'avez pas d'autorisation d'écriture)

pteng01:trunk mike$ gem list -d RedCloth 

    *** LOCAL GEMS *** 

    RedCloth (3.0.4) 
     Author: why the lucky stiff 
     Rubyforge: http://rubyforge.org/projects/redcloth 
     Homepage: http://www.whytheluckystiff.net/ruby/redcloth/ 
     Installed at: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 

     RedCloth is a module for using Textile and Markdown in Ruby. Textile 
     and Markdown are text formats. A very simple text format. Another 
     stab at making readable text that can be converted to HTML. 
    pteng01:trunk mike$ 

J'ai essayé

sudo gem uninstall --install-dir /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 

et je reçois cette erreur

ERROR: While executing gem ... (Gem::FilePermissionError) 
You don't have write permissions into the /usr/lib/ruby/gems/1.8/bin directory. 

Répondre

1

i couru

gem cleanup 

et puis

gem list -d RedCloth shows this 

*** LOCAL GEMS *** 

RedCloth (4.2.3) 
    Author: Jason Garber 
    Rubyforge: http://rubyforge.org/projects/redcloth 
    Homepage: http://redcloth.org 
    Installed at: /opt/local/lib/ruby/gems/1.8 

    RedCloth-4.2.3 - Textile parser for Ruby. http://redcloth.org/ 

ressemble à ce n'était pas vraiment à l'emplacement précédent.

+1

Si 'gem cleanup' a été exécuté et que le problème a été corrigé, vous avez probablement supprimé plusieurs versions du gem et de la commande cleanup, mais toutes les plus récentes. –

+0

ouais c'était le cas, j'essayais de supprimer l'ancienne version afin que je puisse aller avec le nouveau et avoir la tranquillité d'esprit im pas encombrer mon système. – Mike

Questions connexes