./configure can't find X



Hi there,

anybody willing to help me out? I'm trying to install gtk+-1.2.10 on
RedHat7.1  (2.4.2-2). The ./configure script 
crashes when it tries to find X, these are its last lines:

checking for X... no
configure: error:
*** X libraries or include files not found. Check 'config.log' for
*** more details.

The relevant lines of config.log are:

configure:4544: checking for X
configure:4611: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4607:27: X11/Intrinsic.h: No such file or directory
configure: failed program was:
#line 4606 "configure"
#include "confdefs.h"
#include <X11/Intrinsic.h>
configure:4687: gcc -o conftest -g -O2 -Wall   conftest.c -lXt   1>&5
configure: In function `main':
configure:4683: warning: implicit declaration of function `XtMalloc'
/usr/bin/ld: cannot find -lXt
collect2: ld returned 1 exit status
configure: failed program was:
#line 4680 "configure"
#include "confdefs.h"

int main() {
XtMalloc()
; return 0; }


I don't seem to have a file called Intrinsic.h, so I guess it doesn't know
where to find the X11 libraries? I do have the Xt libraries, they're in
/usr/X11R6/lib, at least I have a file named libXt.so.6.0, and a sym link
to it called libXt.so.6. When I try to compile anything with gcc -lXt I
get "/usr/bin/ld: cannot find -lXt", even when I add -L/usr/X11R6/lib.
/usr/X11R6/lib is in my /etc/ld.so.conf file, and I've run ldconfig over
and over again.

Clearly there's something fundamental that I don't know about, please help
me out.

thanks a lot, mike


*********************************************************************
*                                                                   *
*  Michael Kuhlen                  Astronomy Department UCSC        *
*  email: mqk ucolick org          Kerr Hall                        *
*  home phone: (831) 469-3890      1156 High Street                 *
*  work phone: (831) 459-4485      Santa Cruz, CA 95060             *
*                                                                   *
*********************************************************************






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]