Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-24-2013, 04:27 PM   #1
LQ Newbie
Registered: May 2013
Posts: 17

Rep: Reputation: Disabled
Can't find X11 headers in CentOS 6.4

I have recently upgraded to new computer and CentOS 6.4
I was using CentOS 5.1 and compiling C++ programs that
required X11R6 header files and libraries. I can't find
these in 6.4 although I've looked all over the place.
It looks like X11 is installed (it come with the distribution
right?) but the gcc compiler says it can't find files like
X11/Xlib.h, X11/Xutil.h, X11/cursorfont.h, etc. 'locate'
returned nothing for these files and all other X11 headers.
Do I need further installation? Please help.
Old 05-24-2013, 06:32 PM   #2
John VV
LQ Muse
Registered: Aug 2005
Posts: 16,264

Rep: Reputation: Disabled
try this
su -
yum provides */X11/Xlib.h

---- then from the list  install ---
yum install libX11-devel

Last edited by John VV; 05-24-2013 at 06:33 PM.
Old 05-24-2013, 07:17 PM   #3
LQ Newbie
Registered: May 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thumbs up Problem fixed

That works, thanks much.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
help, i'm about to loose it..... can't find GL headers........... RichardUK Programming 3 12-21-2009 07:17 AM
Where can I find the Kernel Headers? Xyen Puppy 2 11-23-2008 01:16 AM
Where Do I Find KDE Headers? Harpo SUSE / openSUSE 1 06-29-2006 05:32 PM
configure: error: Cannot find X11 headers/libraries shams Ubuntu 1 02-20-2006 10:07 PM
xscreensaver - "couldn't find X11 headers" error teal Linux - Newbie 2 07-02-2003 03:11 AM

All times are GMT -5. The time now is 01:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration