Jan*_*ard 8 macos homebrew gcc manpage
我不知何故丢失了gcc和g ++的手册页.我不确定在哪里/找什么.我很确定这些人工页面曾经使用过.它也可以在我的Mac上工作,我使用大致相同的设置.这可能是酿造的问题吗?或者它是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
Run Code Online (Sandbox Code Playgroud)
Gra*_*yer 11
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
Run Code Online (Sandbox Code Playgroud)
你需要 man clang
我认为这是一个符号链接,但ls -l不会将其列为符号链接,因此要么是硬链接,要么是其他类型的诡计.
小智 5
这可能很旧,并不能完全回答你的具体问题,但我发现自己在 Kali Linux 中遇到了同样的问题,我用这个命令解决了它,也许对某人有用:
apt install gcc-doc
Run Code Online (Sandbox Code Playgroud)