Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
18
rated 0 times [  18] [ 0]  / answers: 1 / hits: 39846  / 3 Years ago, sat, may 1, 2021, 4:34:03

I recently upgraded from Kubuntu 12.04 to 13.04, a complete reinstall.



Using gcc 4.7.3. I compiled some programs to discover there is no /usr/include/sys directory. That is, types.h, stat.h, etc, are absent. They exist in the include/linux directory but not include/sys.



What's going on?


More From » gcc

 Answers
5

If you use Ubuntu on 64-bit (I can't text exactly right now on a 32-bit system), then the directory from the question is:



/usr/include/x86_64-linux-gnu/sys


Now, having this information, you can create symbolic links to those files if you really need them at that location (/usr/include/sys) using this on a terminal:



sudo ln -s /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/sys/types.h
sudo ln -s /usr/include/x86_64-linux-gnu/sys/stat.h /usr/include/sys/stat.h

# ...etc

[#27172] Monday, May 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ousear

Total Points: 395
Total Questions: 114
Total Answers: 89

Location: Jordan
Member since Thu, Aug 5, 2021
3 Years ago
;