Wednesday, August 12, 2015

How to install x11 in cent OS

Error: HGraf.c:118:77: error: X11/Xlib.h: No such file or directory

solution: https://ask.fedoraproject.org/en/question/27815/cant-compile-with-xlib/

If you're trying to determine what package has a header file, you can either run:

repoquery -qf /usr/include/X11/Xlib.h

(that will tell you what package has that file, you do need to know the full path, but it is usually pretty obvious)

Or, if you just want to install the package with that header file:

yum install /usr/include/X11/Xlib.h

Yum can do that because it has filelists_db in the extended repodata. :)

No comments:

Post a Comment