2013-05-26 45 views
2

我試圖運行在終端上釀造的醫生,但是當我這樣做,它告訴我一些警告...我貼吧:無法運行BREW的醫生,它給了警告

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/libjansson.4.dylib 
    /usr/local/lib/libusb-1.0.0.dylib 

Warning: Unbrewed .la files 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 .la files: 
    /usr/local/lib/libjansson.la 

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/libjansson.a 
    /usr/local/lib/libusb-1.0.a 

Warning: You have unlinked kegs in your Cellar 
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on 
those kegs to fail to run properly once built. Run `brew link` on these: 

    jansson 
    libidn 
    libtool 
    libusb 

回答

5

好,聽起來好像你可能已經自己安裝了libjansson和libusb工具,而不使用brew。

除此之外,按照它的指示,並運行下面的命令......

brew link jansson 
brew link libidn 
brew link libtool 
brew link libusb 

它可能會要求你添加的--overwrite標誌,你可以先檢查什麼動作是將採取通過增加--dry-run旗也是。

+0

謝謝,但是當我運行這些命令時,我說/ usr/local/Cellar/libtool(或jansson等)/ 2.4.2 /usr/local/opt不可寫。你應該改變它的權限。 我該如何更改權限? PS我只是運行brew安裝 – user2422412

+1

'sudo chmod go + rw/usr/local/opt'我還建議您在有空的時候閱讀man page和homebrew的wiki。 – demure

+0

謝謝你!它終於有效!當然我會閱讀維基;) – user2422412

相關問題