LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error while trying to install program: "X11/Xlib.h: No such file or directory" (https://www.linuxquestions.org/questions/linux-newbie-8/error-while-trying-to-install-program-x11-xlib-h-no-such-file-or-directory-183378/)

nate1 05-19-2004 03:05 PM

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:

make[1]: *** [set_focus.o] Error 1
make[1]: Leaving directory `/root/rw01/src/libs/minig'
make: *** [minig.a] Error 2

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

nate

jschiwal 05-20-2004 05:37 AM

There are a number of packages which contain a file named Xlib.h in different directories:

libxfree86-devel:/usr/X11R6/include/X11/Xlib.h
mozilla-devel:/usr/include/mozilla-1.6/widget/nsIDragSessionXlib.h
perl-Tk-devel:/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi/Tk/pTk/Xlib.h
xemacs-devel:/usr/lib/xemacs-21.4.14/i386-mandrake-linux/include/extw-Xlib.h

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.

nate1 05-20-2004 01:39 PM

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.

nate

jschiwal 05-21-2004 09:08 AM

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.

Good Luck!


All times are GMT -5. The time now is 12:20 PM.