2010-06-18 2 views
1

내 시스템에서 보석을 제거하는 데 문제가 있습니다.sudo gem을 제거 할 수 없습니다 (쓰기 권한이 없습니다)

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 

을 시도하고 나는

gem cleanup 

및 실행

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

답변

1

이 오류를 얻을 : 내가 RedCloth가 설치되어 보석을 요청할 때이 말한다 다음

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/ 

이전 위치에 실제로는 그렇지 않은 것처럼 보입니다.

+1

'gem cleanup'을 실행하여 문제를 해결 한 경우, 보석 및 정리 명령의 여러 버전이 가장 최근 버전을 제외한 모든 버전에서 제거되었을 수 있습니다. –

+0

그래, 나는 새로운 버전과 함께 갈 수 있고 마음의 평화가 내 시스템을 어수선하게 만들 수 없도록 이전 버전을 제거하려고했다. – Mike

관련 문제