我正在尝试使用brew install homebrew / versions / freetds091安装freetds,但遇到了这个错误:
clang: error: unsupported option '-V -isystem/usr/local/include'
这是config.log
的细节configure:3787:clang --version>& 5 Apple LLVM 7.3.0版 (clang-703.0.31)目标:x86_64-apple-darwin15.6.0线程模型:posix InstalledDir:/ Library / Developer / CommandLineTools / usr / bin configure:3798:$? = 0 configure:3787:clang -v>& 5 Apple LLVM版本 7.3.0(clang-703.0.31)目标:x86_64-apple-darwin15.6.0线程模型:posix InstalledDir:/ Library / Developer / CommandLineTools / usr / bin configure:3798:$? = 0 configure:3787:clang -V>& 5 clang:错误: 不支持的选项' -V -isystem的/ usr /本地/包括' configure:3798:$? = 1 configure:3787:clang -qversion>& 5 clang:错误:未知参数:' -qversion' configure:3798:$? = 1 configure:3818:检查C编译器是否正常 works configure:3840:clang conftest.c>& 5 ld:意外令牌: !tapi-tbd-v2文件 ' /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib/libSystem.tbd' 对于体系结构x86_64 clang:错误:链接器命令因退出而失败 代码1(使用-v查看调用)
我已经安装了xcode(8.0版) 有一个奇怪的疑点:xcode 8.0的clang版本是8.0,但brew使用7.x.
/Library/Developer/CommandLineTools/usr/bin/clang -v
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
我将系统更新到macOS Sierra后解决了它。