Не удается удалить sudo gem (у вас нет прав на запись) - PullRequest
1 голос
/ 19 июня 2010

У меня проблемы с удалением драгоценного камня из моей системы.Когда я спрашиваю gem, где установлен RedCloth, он говорит следующее:

    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$ 

Я пытался

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

и получаю эту ошибку

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

1 Ответ

1 голос
/ 19 июня 2010

Я бегал

gem cleanup 

и затем введите

gem list -d RedCloth 

, который показывает это

*** 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/

похоже, что это не было в предыдущем месте.

...