1
votes

Somehow the standard C header files seem to have gone missing.

/usr/include/ used to include inttypes.h, sys/types.h, stdlib.h, string.h and a myriad of other standard C files.

locate still shows these files present in /usr/include until I ran updatedb.

How do I recover these files? I tried re-installing gcc using apt-get.

1
Are you sure the headers have actually been removed? What is the output of find /usr/include -name "*.h" | wc -l? - Elliott Frisch

1 Answers

2
votes

You must have uninstalled the package that supplied those files. The package might have been uninstalled as it was no longer needed - marked as automatically installed by some other package.

Check the package that contains the files on packages.ubuntu.com and install the package that contains the file.

Search result for inttypes.h