Installing ROOT, says `no libX11' but libX11 is present!

Dear reader,

I try to install (as user=root) ROOT on my system (RedHed 9, gcc 3.2.2) but after typing `./configure’ I get a message that the X11 lib cannot be found whereas I DO have that lib:

amur: /home/ytsen > locate libX1
/usr/X11R6/lib/libX11.so.6.2
/usr/X11R6/lib/libX11.so.6

How can I get ROOT to recognise this?

Thanks in advantage,

Ytsen.

Hi,

It is looking for libX11.so (no other extension).
Just add a softlink from libX11.so to libX11.so.6

Cheers,
Philippe.

Please install the XFree86-devel package which contains the libX11.so and X11 headers.

– Fons

Adding softlinks libX11.so -> libX11.so.x and libXpm.so -> libXpm.so.x solves the problem.

I am running the 64 bit version of SL4.4 and initially had what i thought was the same problem as the original post of this thread. I added the suggested softlinks (i have all the necessary libraries to my knowledge). This stopped the crashing i was having when I typed ‘./configure’ however I get this error now when I type ‘make’.

g++ -shared -Wl,-soname,libGX11.so.5.13 -g -Wl,-rpath,/opt/new/lib -o lib/libGX11.so.5.13 x11/src/GX11Gui.o x11/src/Rotated.o x11/src/TGX11.o x11/src/gifdecode.o x11/src/gifencode.o x11/src/gifquantize.o x11/src/G__X11.o -L/usr/X11R6/lib -lXpm -L/usr/X11R6/lib -lXext -lX11
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXpm.so when searching for -lXpm
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXpm.so when searching for -lXpm
/usr/bin/ld: cannot find -lXpm
collect2: ld returned 1 exit status
make: *** [lib/libGX11.so] Error 1

Has anyone seen this before?

I am getting this error on version 5.12/00f (above was on 5.13.04)

g++ -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DHAVE_CONFIG -pthread-I. -o x11/src/G__X11.o -c x11/src/G__X11.cxx
g++ -shared -Wl,-soname,libGX11.so.5.12 -g -Wl,-rpath,/opt/new/lib -o lib/libGX11.so.5.12 x11/src/GX11Gui.o x11/src/Rotated.o x11/src/TGX11.o x11/src/gifdecode.o x11/src/gifencode.o x11/src/gifquantize.o x11/src/G__X11.o -L/usr/X11R6/lib -lXpm -L/usr/X11R6/lib -lX11
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXpm.so when searching for -lXpm
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXpm.so when searching for -lXpm
/usr/bin/ld: cannot find -lXpm
collect2: ld returned 1 exit status
make: *** [lib/libGX11.so] Error 1
rm utils/src/RStl_tmp.cxx utils/src/rootcint_tmp.cxx

so it is not version specific.

Hi,

making symbolic links is not the right solution. Make sure you have the xorg-x11-devel package installed which includes, on x86_64, both the 32 and 64 bit versions of libXpm and libX11, etc. On my FC4 AMD64 I’ve this:

(pcsalo) [129] locate libXpm.a
/usr/X11R6/lib/libXpm.a
/usr/X11R6/lib64/libXpm.a
(pcsalo) [130] rpm -q -f /usr/X11R6/lib64/libXpm.a
xorg-x11-devel-6.8.2-37.FC4.49.2.1
(pcsalo) [131] rpm -q -f /usr/X11R6/lib/libXpm.a
xorg-x11-devel-6.8.2-37.FC4.49.2.1

on this platform ROOT will be configured, by default, for linuxx8664 and it will need the lib64 versions.

Cheers, Fons.

I have all of the necessary libraries installed, but your responce did lead me to the correct answer. I had taken a configuratoin script from the lab I work at and the path to thoes libraries was not being properly addressed. It seems that I keep missing the obvious things. Thanks again for your help.

Brian