Error configuring: libX11 MUST be installed

Hello,

I downloaded ROOT 5.28 from source and I ran the configure file:

Which gave the following error:

Checking for libX11 ... no configure: libX11 MUST be installed See http://root.cern.ch/drupal/content/build-prerequisites

The problem is that I already installed all the prerequisite packages for Ubuntu 11.04. I confirm this by typing:

and seeing:

What is the problem here? Can anybody help me? Thanks!

Hi,

for Ubuntu 11.04 please install the trunk version of ROOT or the trunk of the v5-28-00-patches branch. The needed fixes have been made there.

Cheers, Fons.

Hello, rdm,

I’m sorry for the ignorance, but which is the trunk version and where do I find it? (I couldn’t find it in the downloads section of the website).

Thank you very much!

See here:

root.cern.ch/drupal/content/inst … oot-source

and here, if you need v5-28-00-patches:

root.cern.ch/drupal/content/root … ease-notes

Cheers, Fons.

Hello

I have the trunk version and ubuntu 11.10 and have the same problem.

gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

Any ideas on how I fix this?

Thanks
VM.

How do you configure ROOT?

./configure

or

./configure linux

?

Actually I tried both.

Can you check in the config.log file why libX11 is not found? On my Ubuntu 11.10 it works when configuring for 64-bit (but did not try 32-bit).

Cheers, Fons.

Hi,

It seems that the configure script and ROOT are not looking in the correct place for the libX11 and other libraries.

The following website gives detailed instructions about how to configure and install ROOT on Ubuntu 11.04.

askubuntu.com/questions/39363/ho … -root-cern

I am following them now on a 11.10 Ubuntu install and it seems to be doing the trick (compiling as we speak).

Ciaran

The above instructions still failed.

However, downloading from the SVN repository and then following the instructions does seem to work!

Hurray!

hi Rooters ,

I’m using XPS tool
bioconductor.org/packages/2. … l/xps.html
that is requires ROOT framework .

My problem is installation@Ubuntu 12.04 issue that is the same as posted here

./configure linux
" Checking for libX11 … no
configure: libX11 MUST be installed "

After installing all prerequisite linux libraries., and trying to compile few most recent ROOT versions (including the newest from SVN) I had no success.

I also tried to direct the installation to the correct X11 directory , 64 bit :
./configure linux --with-x11-libdir=/usr/lib/x86_64-linux-gnu

Log says :

….

Result: gfortran

Checking for libX11 …

libraries to check for: libX11.so libX11.sl libX11.dylib libX11.dll.a libX11.a libX11.lib libX11

Checking in directories /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu for

libX11.so libX11.sl libX11.dylib libX11.dll.a libX11.a libX11.lib libX11

Checking for library libX11.so in directory /usr/lib/x86_64-linux-gnu

Checking /usr/lib/x86_64-linux-gnu/libX11.so

Found file /usr/lib/x86_64-linux-gnu/libX11.so

Checking if /usr/lib/x86_64-linux-gnu/libX11.so is a 64-bit library

file -L /usr/lib/x86_64-linux-gnu/libX11.so | grep ‘64-bit’

result: 1

is a 64bit library

Checking for library libX11.sl in directory /usr/lib/x86_64-linux-gnu

Checking /usr/lib/x86_64-linux-gnu/libX11.sl

libX11.sl not found in /usr/lib/x86_64-linux-gnu

Checking for library libX11.dylib in directory /usr/lib/x86_64-linux-gnu

Checking /usr/lib/x86_64-linux-gnu/libX11.dylib

libX11.dylib not found in /usr/lib/x86_64-linux-gnu

Checking for library libX11.dll.a in directory /usr/lib/x86_64-linux-gnu

Checking /usr/lib/x86_64-linux-gnu/libX11.dll.a

libX11.dll.a not found in /usr/lib/x86_64-linux-gnu

Checking for library libX11.a in directory /usr/lib/x86_64-linux-gnu

Checking /usr/lib/x86_64-linux-gnu/libX11.a

Found file /usr/lib/x86_64-linux-gnu/libX11.a

Checking if /usr/lib/x86_64-linux-gnu/libX11.a is a 64-bit library

objdump -a /usr/lib/x86_64-linux-gnu/libX11.a | grep ‘x86-64’

result: 1

is a 64bit library

Checking for library libX11.lib in directory /usr/lib/x86_64-linux-gnu

Checking /usr/lib/x86_64-linux-gnu/libX11.lib

libX11.lib not found in /usr/lib/x86_64-linux-gnu

Checking for library libX11 in directory /usr/lib/x86_64-linux-gnu

Checking /usr/lib/x86_64-linux-gnu/libX11

libX11 not found in /usr/lib/x86_64-linux-gnu

Checking for library libX11.so in directory /usr/lib/x86_64-linux-gnu

Checking /usr/lib/x86_64-linux-gnu/libX11.so

Found file /usr/lib/x86_64-linux-gnu/libX11.so

Checking if /usr/lib/x86_64-linux-gnu/libX11.so is a 64-bit library

file -L /usr/lib/x86_64-linux-gnu/libX11.so | grep ‘64-bit’

result: 1

is a 64bit library

Checking for library libX11.sl in directory /usr/lib/x86_64-linux-gnu

Checking /usr/lib/x86_64-linux-gnu/libX11.sl

libX11.sl not found in /usr/lib/x86_64-linux-gnu

Checking for library libX11.dylib in directory /usr/lib/x86_64-linux-gnu

Checking /usr/lib/x86_64-linux-gnu/libX11.dylib

libX11.dylib not found in /usr/lib/x86_64-linux-gnu

Checking for library libX11.dll.a in directory /usr/lib/x86_64-linux-gnu

Checking /usr/lib/x86_64-linux-gnu/libX11.dll.a

libX11.dll.a not found in /usr/lib/x86_64-linux-gnu

Checking for library libX11.a in directory /usr/lib/x86_64-linux-gnu

Checking /usr/lib/x86_64-linux-gnu/libX11.a

Found file /usr/lib/x86_64-linux-gnu/libX11.a

Checking if /usr/lib/x86_64-linux-gnu/libX11.a is a 64-bit library

objdump -a /usr/lib/x86_64-linux-gnu/libX11.a | grep ‘x86-64’

result: 1

is a 64bit library

Checking for library libX11.lib in directory /usr/lib/x86_64-linux-gnu

Checking /usr/lib/x86_64-linux-gnu/libX11.lib

libX11.lib not found in /usr/lib/x86_64-linux-gnu

Checking for library libX11 in directory /usr/lib/x86_64-linux-gnu

Checking /usr/lib/x86_64-linux-gnu/libX11

libX11 not found in /usr/lib/x86_64-linux-gnu

library not found

Result: configure: libX11 MUST be installed


It seems instalation script finds libX11.so libX11.a but the rest of the files are not found

root@ubuntu:/# find ./ -name "libX11*"
did not find libX11.sl libX11.dylib libX11.dll.a libX11.a libX11.lib libX11 , I found on the web that few of these belong to MAC / cygwin etc
So I assume these are not needed.?

Do you have any advice ?

Thanx,
Branko

p.s. Btw. I could install binary version of the ROOT from this site
scaini.org/site/projects/27/root … and-ubuntu
but that did not help me since ROOT and XPS tool need to use the same compiler.

Try:
./configure linuxx8664gcc
or simply:
./configure

Which version of ROOT do you try to install? Only v5-34-00 and trunk work on Ubuntu 12.04.

Cheers, Fons.

thanx Pepe Le Pew & rdm for quick reply .

./configure linuxx8664gcc
=D>
was the fix. I just installed v5-32 .

@ rdm , I did try trunk & v5-34 last week but the issue was there
I remember I used both
./configure linux
./configure

all the best Rooters.

B.

Branislav Misovic,
Department of Toxicogenetics
Leiden University Medical Center
Einthovenweg 20, 2333 ZC Leiden
PO.box 9600, Building2,Room:T3-11
2300 RC Leiden
The Netherlands
Phone: +31 71 526 9636
Mob: 0653135855
E-mail: b.misovic@lumc.nl ,
braniti@gmail.com

Then the question is why “./configure” (without enforcing any “architecture”) did not automatically select “linuxx8664gcc” (I assume it imposed “linux”).

Bizarre, never saw auto arch detect fail yet. Could you check in the configure script why this fails on your machine. For me it works fine on Ubuntu 12.04.

Cheers, Fons.

I checked rdm ,

it seems i made mistake somewhere last week .

./configure
works fine on v5-34 at my machine . Sorry for miss info.

It might have been that i used some older Root version ( i had this issue 1-2 months ago but had to put it on hold due to other obligations… until last week)
or i had some other essential lib missing error and moved to ./configure linux .
that I saw on some Web forum post which informed me about --with-xxx-libdir switches.

thanx again for quick help

I had this problem but sorted it out.

Using the trunk version ROOT 5.99/01 obtained with svn, I tried to compile it for linux 64 bit and got errors regarding libX11.

The problem was simply that my OS (opensuse 12.2) was not 64 bit (though the machine is) … how it got that way is another story.

One can check that you really have a 64 bit linux using uname -m

The 32 bit linux ./configure, make had no problems