Terminal Can';t运行brew doctor,它会发出警告
我试图在终端上运行brew doctor,但当我运行时,它会告诉我一些警告。。。我粘贴它:Terminal Can';t运行brew doctor,它会发出警告,terminal,installation,homebrew,Terminal,Installation,Homebrew,我试图在终端上运行brew doctor,但当我运行时,它会告诉我一些警告。。。我粘贴它: 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:
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
嗯,听起来好像您自己安装了libjansson和libusb工具,而没有使用brew 除此之外,按照它的说明,并运行以下命令
brew link jansson
brew link libidn
brew link libtool
brew link libusb
它可能会要求您添加
--overwrite
标志,您可以首先通过添加--dry run
标志来检查将采取的操作。检查此答案,它告诉您可以删除旧安装中的剩余文件 谢谢,但是当我运行命令时,命令告诉我/usr/local/ceral/libtool(或jansson等)/2.4.2/usr/local/opt是不可写的。您应该更改其权限。如何更改权限?PS我刚刚运行brew安装sudo chmod go+rw/usr/local/opt
,我还建议您有时间时阅读手册页和自制wiki。谢谢!终于成功了!当然我会读维基;)