2013-05-26 47 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

相关问题