gpt4 book ai didi

macos - 如何修复 "No manual entry for gcc"?

转载 作者:行者123 更新时间:2023-12-02 16:48:34 26 4
gpt4 key购买 nike

我不知何故丢失了 gcc 和 g++ 的手册页。我不知道去哪里/寻找什么。我很确定手册页以前可以工作。它也适用于我工作中的 Mac,我使用的设置大致相同。会不会是brew的问题?或者是 XCode 命令行工具中的错误?

更新:我刚刚尝试重新安装 XCode 命令行工具。运气不好。

~
✓ man gcc
No manual entry for gcc

~
✗ which gcc
/usr/bin/gcc

~
✓ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix

最佳答案

Xcode 不再安装 gcc,它真正安装 clang 并将其称为 gcc

usxxplayegm1:~ grady$ which gcc
/usr/bin/gcc

usxxplayegm1:~ grady$ /usr/bin/gcc --version

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.0.2
Thread model: posix

你需要man clang

我认为这是一个符号链接(symbolic link),但是 ls -l 没有将其列为符号链接(symbolic link),因此它要么是硬链接(hard link),要么是某种其他类型的欺骗。

关于macos - 如何修复 "No manual entry for gcc"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23684642/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com