LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-19-2004, 02:05 PM   #1
nate1
LQ Newbie
 
Registered: Apr 2004
Posts: 14

Rep: Reputation: 0
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
 
Old 05-20-2004, 04:37 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 05-20-2004, 12:39 PM   #3
nate1
LQ Newbie
 
Registered: Apr 2004
Posts: 14

Original Poster
Rep: Reputation: 0
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
 
Old 05-21-2004, 08:08 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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!
 
  


Reply


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
"bad interpreter : no such file or directory" when configure "flex" acer_peri Linux - Software 10 11-10-2010 01:19 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Error in man command "sh: line 1: /usr/bin/gtbl: No such file or directory" MinA Slackware 1 09-06-2004 06:36 PM
error message "no such file or directory" Luisa Linux - General 3 02-14-2004 02:40 PM
Error message "no such file or directory" Luisa Linux - General 0 02-13-2004 11:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:19 AM.

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