error while trying to install program: "X11/Xlib.h: No such file or directory"
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
error while trying to install program: "X11/Xlib.h: No such file or directory"
When I type 'make all' I get this error message:
X11/Xlib.h: No such file or directory
along with a short list of parse errors, undeclared variables, and various warnings, all of which I assume are a result of this first error. The process aborts with:
I'm pretty sure that I do have Xlib.h, although it is in a different path, I think. I tried to edit the Makefile to account for this, but I got the exact same series of error messages (except the path was different).
Any help or general direction would be much appreciated. Thanks
This list may not be conclusive, and since you haven't indicated which distro you are using, or the program you are trying to install, I don't know if anyone can provide much in the way of help without more information. The xlibfree86-devel package is probably the one you want installed. the perl-Tk-dev and xemacs-devel packages may be distro specific.
I'm running on Red Hat Linux 9. I hope that answers the 'distro' question. The program that I'm trying to install is called 'radware' but I don't think my error is the fault of the program since I've also experienced problems while trying to install other programs.
As far as there being a number of 'packages' which contain Xlib.h, are these completely different files,
ie: is it the case that my trying to edit the Makefile to read one of the paths that you indicated is a fundamentally flawed approach?
Does this look like a problem that is going to require me to install something else to get the desired program, or does it look more like something that can be easily fixed by editing the Makefile?
I realize that my ignorance of Linux matters probably grossly magnifies the difficulty for anybody who is trying to help. For this reason I am greatly appreciative of any advice.
You may get more information by reading the config.log, if the first step was to run ./configure.
Most likely the file it is looking for is /usr/X11R6/include/X11/Xlib.h
Type in the console, locate Xlib.h and see if it turns up. The ./configure script may expect the XF86 include files in /usr/X11 instead of /usr/X11R6. Often there is a link from /usr/X11 -> /usr/X11R6.
I typed in: rpm -q -f Xlib.h and it returned
only the libxfree86-devel package. Make sure this package is installed. If it is installed, then use: grep -n '/usr/X11' configure
and
grep -n '/usr/X11' Makefile
This should help you locate where the include path needs changing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.