- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我跑 brew -- config
我得到
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: bc071fb5448628aea8f066bbc0f37b0ecb4f11ee
Last commit: 16 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit haswell
OS X: 10.10.1-x86_64
Xcode: 6.1.1
CLT: 6.1.1.0.1.1416017670
couldn't understand kern.osversion `14.0.0'
GCC-4.2: build 5666
Clang: 6.0 build 600
X11: 2.7.7 => /opt/X11
System Ruby: 2.0.0-p481
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby
xcode-select --install
)并且在正确的位置
/Applications/Xcode.app/Contents/Developer
xcode-select -print-path
,我的(仅)
gcc
是
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
brew doctor
是
Unexpected static libraries:
/usr/local/lib/libtclstub8.6.a
/usr/local/lib/libtkstub8.6.a
usr/bin/gcc-4.2
,其中
--version
给
couldn't understand kern.osversion `14.0.0'
i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
...
/usr/bin/i686-apple-darwin11-gcc-4.2.1
,其中
--version
也给
couldn't understand kern.osversion `14.0.0'
i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
...
brew -- config
的报告
couldn't understand kern.osversion `14.0.0'
最佳答案
你前段时间在这台机器上升级过OS X吗?我猜它们来自较旧的安装。自 gcc
默认情况下未安装,操作系统升级可能没有删除或替换 gcc
和其他 XCode 命令行工具。你是否真的可以安全地删除它们,我不知道,但显而易见的是重命名它们(或将它们移动到备份子目录中),以便它们不在您的 PATH
之外。 .这样, Homebrew 软件将找不到它们并使用较新的编译器( clang
)。很可能,您的系统(XCode、brew)将照常运行,因为它们将使用 clang
在您的系统上找到。
您看到的错误,“无法理解 kern.osversion '14.0.0'”,很可能来自于 gcc
是针对较旧的 OS X 内核版本编译的,当前版本 (Yosemite/14.0.0) 与该内核版本向后不兼容。
我不知道究竟安装了哪些编译器工具,但仅针对违规 gcc
,您可以执行以下操作:
mv /usr/bin/gcc-4.2 /usr/bin/gcc-4.2-oldOSX10.9
关于xcode - 为什么 Homebrew 报告 "couldn' t 理解 kern.osversion `14.0.0'”?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28068383/
我正在创建一个通用的 Windows 应用程序(Phone 和 metro),我需要访问操作系统的友好名称(例如 Windows Phone 8.1)。 Internet 上的所有资源都指向 Envi
这个问题在这里已经有了答案: Detect Windows version in .NET (18 个答案) 关闭 6 年前。 确定使用 System.Environment.OSVersion 命
使用 windows 10,从 windows 8 升级 => 8.1 => 10 当我使用此代码时。 OperatingSystem os = System.Environment.OSVersio
我当前正在尝试编译这个简单的代码: #include int main(int argc, char *argv[]) { GtkWidget *window; gtk_init(&argc, &a
我正在对一些检查当前操作系统版本的代码进行单元测试,因为 dll 中的方法只能在 Windows 7 上运行。为此,使用了以下内容 if (Environment.OSVersion.Version
当调用 Windows 10 版本时: Environment.OSVersion.ToString() 返回这个 Windows 8 和 8.1 版本返回 6.2 而不是 6.3?! 我正在使用 W
我打算编写代码来确定操作系统是否为 Windows XP,因此我可以设置 LOCALAPPDATA 环境变量来解决大量使用 ExpandEnvironmentVariables() 的整个代码负载。
我必须获得我的 OSVersion 系统(版本应该是 Windows8 )的 NT 6.2 才能在 C++ 应用程序中使用。我尝试使用 GetVersion 函数调用。但它返回了一个原始值,如 602
在尝试查看系统上的 gcc 版本时,我收到以下消息 gcc --version gcc: warning: couldn’t understand kern.osversion ‘14.5.0 gcc
resources | where type == "microsoft.compute/virtualmachinescalesets" | extend extensions = proper
我一直在使用 Win32::GetOSVersion() perl 函数来获取目标的操作系统版本。但是,此 API 调用仅支持 Windows Server 2012。 http://search.c
在我的 Silverlight Windows Phone 7/8 项目中,我总是使用这些方法/类来获取有关用户手机的信息: Microsoft.Phone.Info.DeviceStatus.Dev
System.Environment.OSVersion 似乎不是 .net core 5.0 (dnxcore50) 的一部分。 我正在尝试确定用户使用的是哪个操作系统,因此当他们将文件保存到我知道
当我跑 brew -- config我得到 HOMEBREW_VERSION: 0.9.5 ORIGIN: https://github.com/Homebrew/homebrew HEAD: bc0
标题基本上说明了一切。我需要确定 Windows Service Pack 编号(以数字形式)和 Environment.OSVersion.ServicePack (基本上只返回 OSVERSION
我使用 RVM 安装 Ruby-2.1.5 并再次运行 bundle。现在 pg gem 不会安装,我得到这个错误: gem install pg -v '0.17.1' -- --with-pg-c
我安装了 OS X Yosemite,现在我遇到了 gcc 4.9.1 编译器的大问题。我希望有人可以帮助我。 我尝试编译我的程序并收到警告消息: gcc: warning: couldn’t und
我是一名优秀的程序员,十分优秀!