LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem in installing libX11-devel (https://www.linuxquestions.org/questions/linux-newbie-8/problem-in-installing-libx11-devel-915576/)

summit 11-25-2011 08:50 PM

problem in installing libX11-devel
 
Hi Linuxexperts,

I want to install libX11-devel in ubuntu. I was installing ROOT 5.26 (http://root.cern.ch/drupal/content/downloading-root). While ./configure


./configure linux
Configuring for linux
Checking for GNU Make version >= 3.79.1 ... ok
Checking for C compiler ... gcc
Checking for C++ compiler ... g++
Checking for linker (LD) ... g++
Checking for F77 compiler ... gfortran
Checking for libX11 ... no
configure: libX11 (package libX11-devel) MUST be installed



I have tried to install libX11-dev by using
"apt-get install libX11-dev"



but still it is giving the same error as above.
when I tried to install libX11-dev then
apt-get install libx11-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libx11-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.


Any suggestions to overcome this problem?

thanks,

Summit

jhwilliams 11-26-2011 12:00 AM

Hi Summit,

On my Ubuntu system, Root configures okay, this is the configure script output related to X11:

Code:

Checking for libX11 ... /usr/lib/x86_64-linux-gnu
Checking for X11/Xlib.h ... /usr/include
Checking for X11/xpm.h ... /usr/include
Checking for X11/Xft/Xft.h ... /usr/include
Checking for X11/extensions/shape.h ... /usr/include
Checking for libXpm ... /usr/lib
Checking for libXft ... /usr/lib/x86_64-linux-gnu
Checking for libXext ... /usr/lib/x86_64-linux-gnu

So the libX11 check is actually for the library, not the header. Where is libX11.so on your system? You could configure with CFLAGS and LDFLAGS exported that point to your X11 libs/headers.

As a sanity check, do you actually have the X headers?

Code:

test -f /usr/include/X11/Xlib.h && echo "exists"

knudfl 11-26-2011 02:48 AM

Ubuntu 11.10 and 11.04 :

'libX11.so' has got a new location, and may not be found :
/usr/lib/i386-linux-gnu/libX11.so
http://packages.ubuntu.com/natty/i38...1-dev/filelist

/usr/lib/x86_64-linux-gnu/libX11.so
http://packages.ubuntu.com/natty/amd...1-dev/filelist

.

summit 11-28-2011 07:35 PM

1 Attachment(s)
Hi friends,
Thanks for reply
yes it exists. I have attached the screen shot of that. But still problem is not resolved.
Please suggest me what should I do to resolve it???

Thanks,

Summit

jhwilliams 11-28-2011 07:40 PM

As above, look for the library, not the header.

summit 11-28-2011 08:21 PM

2 Attachment(s)
I have also attached the screenshot and file "usr/lib" of of that.
please have a look on that.

thanks

knudfl 11-28-2011 09:13 PM

# 6 :

There is no "libX11.so.6" or "libX11.so" in your file a1.txt

See post #3. The files are in /usr/lib/<arch>-linux-gnu/

summit 11-28-2011 09:56 PM

Hi knudfl

Thanks
suggest me something to sort out this problem


Summit

summit 11-28-2011 10:47 PM

1 Attachment(s)
i386-linux-gnu is empty folder
but /x86_64-linux-gnu have files listed in a2.txt


All times are GMT -5. The time now is 07:39 AM.