【发布时间】:2013-12-13 00:36:47
【问题描述】:
当我尝试在终端中运行 brew doctor 时,它给了我几个警告。我如何以最简单的方式摆脱它们。我可以删除文件...?!我还安装了当前的命令行工具,但它说它没有更新?
我现在正在尝试完成本教程的部分内容http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/
这是在运行 brew doctor 时返回的:
Warning: /Library/Frameworks/Mono.framework detected
This can be picked up by CMake's build system and likely cause the build to
fail. You may need to move this file out of the way to compile CMake.
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/libosxfuse_i32.2.dylib
/usr/local/lib/libosxfuse_i64.2.dylib
/usr/local/lib/libprotobuf.6.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/libosxfuse_i32.la
/usr/local/lib/libosxfuse_i64.la
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/osxfuse.pc
Warning: A newer Command Line Tools release is available
Update them from Software Update in the App Store.
当我运行 gcc -v 时它也会给我这个,所以我的命令行工具是最新的,是吗?
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.76) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
【问题讨论】:
-
我用四个步骤解决了这些问题:1)卸载 Mono 框架(参见:discussions.apple.com/message/23529126#23529126)2)卸载 OSXFuse(进入系统偏好设置,先更新它,在我这样做之前它没有卸载) 3)确保你获得了最新版本的 XCode,我的版本由于某种原因没有更新,所以我不得不安装一个新版本。 4)类型:sudo rm /usr/local/lib/libprotobuf.6.dylib
标签: installation warnings homebrew