如何解决“没有手动输入gcc”? [英] How to fix "No manual entry for gcc"?
问题描述
我以某种方式丢失了gcc和g ++的手册页。我不确定在哪里寻找什么。我很确定这个手册页以前用过。在我使用大致相同的设置的工作中,它也适用于我的Mac。这可能是酿造的问题吗?或者它是XCode命令行工具中的错误?
I somehow lost the man pages for gcc and g++. I'm not sure where/what to look for. I'm pretty sure the man pages used to work some time ago. It also works on my Mac at work where I use roughly the same setup. Could it be a problem with brew? Or is it a bug in the XCode Command Line Tools?
更新:我只是试图重新安装XCode命令行工具。
Update: I just tried to re-install the XCode Command Line Tools. No luck.
~
✓ 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
推荐答案
gcc不再由Xcode安装,它确实安装了clang并将其称为gcc
gcc isn't installed anymore by Xcode, it really installs clang and calls it 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
我认为这是一个符号链接,但 ls -l </ code>不会将其列为符号链接,因此无论是硬链接还是其他类型的欺骗。
I thought it was a symlink, but ls -l
doesn't list it as a symlink, so either it is a hard link or some other sort of trickery.
这篇关于如何解决“没有手动输入gcc”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!