LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-25-2011, 08:50 PM   #1
summit
Member
 
Registered: Nov 2010
Posts: 59

Rep: Reputation: 0
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
 
Old 11-26-2011, 12:00 AM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
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"
 
Old 11-26-2011, 02:48 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

.
 
Old 11-28-2011, 07:35 PM   #4
summit
Member
 
Registered: Nov 2010
Posts: 59

Original Poster
Rep: Reputation: 0
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
Attached Thumbnails
Click image for larger version

Name:	Screenshot at 2011-11-29 06:58:43.png
Views:	153
Size:	164.4 KB
ID:	8497  
 
Old 11-28-2011, 07:40 PM   #5
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
As above, look for the library, not the header.
 
Old 11-28-2011, 08:21 PM   #6
summit
Member
 
Registered: Nov 2010
Posts: 59

Original Poster
Rep: Reputation: 0
I have also attached the screenshot and file "usr/lib" of of that.
please have a look on that.

thanks
Attached Thumbnails
Click image for larger version

Name:	Screenshot at 2011-11-29 07:49:25.png
Views:	86
Size:	229.2 KB
ID:	8498  
Attached Files
File Type: txt a1.txt (21.2 KB, 82 views)

Last edited by summit; 11-28-2011 at 08:32 PM.
 
Old 11-28-2011, 09:13 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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/
 
Old 11-28-2011, 09:56 PM   #8
summit
Member
 
Registered: Nov 2010
Posts: 59

Original Poster
Rep: Reputation: 0
Hi knudfl

Thanks
suggest me something to sort out this problem


Summit
 
Old 11-28-2011, 10:47 PM   #9
summit
Member
 
Registered: Nov 2010
Posts: 59

Original Poster
Rep: Reputation: 0
i386-linux-gnu is empty folder
but /x86_64-linux-gnu have files listed in a2.txt
Attached Files
File Type: txt a2.txt (7.5 KB, 97 views)
 
  


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
Problem installing httpd-devel on RHEL5 using yum scabbage Red Hat 6 02-17-2011 05:21 PM
error: *** libX11 not found. when installing GTK+-2.18.7 Prisp Linux - Newbie 4 02-23-2010 08:39 AM
Installing libX11.a library in Red Hat linux almahmoudi Linux - Newbie 3 12-12-2008 12:30 PM
LibX11 problem in gtk Carez Debian 7 11-20-2008 01:08 PM
libX11 problem iankh Linux - Software 3 07-29-2004 06:30 PM

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

All times are GMT -5. The time now is 01:31 PM.

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