2012-11-30 33 views
1

我的山獅終端上運行的BREW醫生,我得到以下錯誤:如何解決我的brew醫生錯誤?

 

Warning: /usr/local/etc isn't writable. 
This can happen if you "sudo make install" software that isn't managed 
by Homebrew. 

If a brew tries to write a file to this directory, the install will 
fail during the link step. 

You should probably `chown` /usr/local/etc 
Warning: Some directories in /usr/local/share/man aren't writable. 
This can happen if you "sudo make install" software that isn't managed 
by Homebrew. If a brew tries to add locale information to one of these 
directories, then the install will fail during the link step. 
You should probably `chown` them: 

    /usr/local/share/man/man8 

          
   
   Warning: Your XQuartz (2.7.2) is outdated Please install XQuartz 2.7.4. 
   
Warning: Unbrewed dylibs were found in /usr/local/lib. 
If you didn't put them there on purpose they could cause problems when 
building Homebrew formulae, and may need to be deleted. 

Unexpected dylibs: 
    /usr/local/lib/libicudata.49.1.2.dylib /usr/local/lib/libicui18n.49.1.2.dylib /usr/local/lib/libicuio.49.1.2.dylib /usr/local/lib/libicule.49.1.2.dylib /usr/local/lib/libiculx.49.1.2.dylib /usr/local/lib/libicutest.49.1.2.dylib /usr/local/lib/libicutu.49.1.2.dylib /usr/local/lib/libicuuc.49.1.2.dylib 
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig. 
If you didn't put them there on purpose they could cause problems when 
building Homebrew formulae, and may need to be deleted. 

Unexpected .pc files: 
    /usr/local/lib/pkgconfig/icu-i18n.pc /usr/local/lib/pkgconfig/icu-io.pc /usr/local/lib/pkgconfig/icu-le.pc /usr/local/lib/pkgconfig/icu-lx.pc /usr/local/lib/pkgconfig/icu-uc.pc 
Warning: Unbrewed static libraries were found in /usr/local/lib. 
If you didn't put them there on purpose they could cause problems when 
building Homebrew formulae, and may need to be deleted. 

Unexpected static libraries: 
    /usr/local/lib/libc-client.a 
Warning: Homebrew's sbin was not found in your path. 
Consider amending your PATH variable so it contains: 
    /usr/local/sbin 
 

我怎樣才能解決這些錯誤? 解決它們至關重要,否則我可能會忽略它們? 謝謝。

+0

我在運行'brew doctor'之前已經運行了'brew update'。 – skiabox

+0

我設法擺脫了XQuartz錯誤使用安裝:http://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.4.dmg – skiabox

回答

0

如果你仔細閱讀的文字,你會發現,它實際上告訴您如何修正錯誤:

You should probably `chown` /usr/local/etc 

You should probably `chown` them: 

    /usr/local/share/man/man8 

dylibs,.PC文件..

may need to be deleted 

所以,改變將提及的目錄的所有者提供給用戶,並刪除不需要的文件(如果您沒有故意將它們放在那裏)。