son*_*089 5 xcode gcc gcc-warning
我在编译 gcc 时遇到问题,可以追溯到 Catalina 存在 xcode 问题,因此我在 OS X mojave 上安装 Haskell 时参考了此处的链接“macOS_SDK_headers_for_macOS_10.14.pkg 与此版本的 macOS 不兼容”并尝试解决问题。但是,虽然我重新安装了xcode,但我无法打开macOS_SDK_headers_for_macOS_10.14.pkg,因为该文件不在/Library/Developer/CommandLineTools/Packages/中。我的文件看起来像;
MacBook-Pro:CommandLineTools myname$ ls
Library SDKs usr
Run Code Online (Sandbox Code Playgroud)
我在哪里可以找到该文件?我应该手动将 pkg 添加到文件夹中吗?
小智 0
我使用的是 MacOS 10.14.6,今天也遇到了类似的问题。我缺少/Library/Developer/CommandLineTools文件夹中的包含文件。这是我解决我的问题的方法,我怀疑它也能解决你的问题。这将安装 CommandLineTools 文件夹中缺少的文件夹和文件,这些文件夹和文件在您使用的 xcode 版本中默认情况下未安装。
cd /Library/Developer/CommandLineTools
xcode-select --install
Run Code Online (Sandbox Code Playgroud)
ls -FalRun Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1039 次 |
| 最近记录: |