Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "No manual entry for gcc"?

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?

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
like image 674
Jan Deinhard Avatar asked May 15 '14 17:05

Jan Deinhard


1 Answers

This may be old and doesn't quite answers your concrete question, but I found myself in the same problem with Kali Linux and I solved it with this command, maybe is useful for someone:

apt install gcc-doc
like image 97
kelov Avatar answered Oct 08 '22 22:10

kelov