LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-25-2006, 12:29 PM   #1
Carez
LQ Newbie
 
Registered: Jan 2006
Location: Somewhere...
Distribution: Debian
Posts: 8

Rep: Reputation: 0
LibX11 problem in gtk


When I try to install gtk, there is always one problem: first the error: "X development libraries not found" appears. I've found the solution, that I have to use: --x-includes=/... and --x-libraries=/...
then another error appears: *** libX11 not found. Check 'config.log' for more details.

Is this because I chose the wrong path? I tried more then one; and although libx11 is correctly installed, it isn't found... I also tried to find solutions in the inet, but none solved the problem

Thanks in advance
 
Old 01-26-2006, 12:04 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
I don't know about your specific problem, but if your -do- have the library, there is a workaround (sometimes) by using a symlink.

To do this, you need to open the "./configure" file of the package / program you want to compile. Search for the section that does the check that is failing.

For example, I wanted to compile something that was looking for, lets say, libabc.a. I -knew- I had libabc.a, but the package's configure wasn't finding it.

So, I went into the configure script and searched for the section trying to compile a program on libabc.a (to check if it is present in the system). I discovered that the configure script was simply looking in the wrong place (/usr/local/lib instead of /usr/lib, if I remember right).

So the solutions was to put a symlink to /usr/lib/libabc.a into /usr/local/lib, so when the script called cc to compile the test program, and cc went looking for the library in /usr/local/lib, it will find the symlink there to /usr/lib...

So, in effect, you can "trick" the compiler to use a library in a directory that it does not refer to, by putting a symlink to that library in a directory the compiler does refer to.

Eg.

In /usr/local/lib do

ln -s libabc.a /usr/lib/libabc.a

So, if the script is looking in /usr/local/lib for libabc.a (where it does not exist, causing the compile to fail) there will be a symlink which will cause it to -actually- look in /usr/lib, and find the library there.

Hope this helps!
 
Old 01-26-2006, 01:39 PM   #3
Carez
LQ Newbie
 
Registered: Jan 2006
Location: Somewhere...
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 0
I've already tried with symlinks, didn't work.... any other ideas?
 
Old 01-26-2006, 01:53 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Carez
When I try to install gtk, there is always one problem: first the error: "X development libraries not found" appears. I've found the solution, that I have to use: --x-includes=/... and --x-libraries=/...
then another error appears: *** libX11 not found. Check 'config.log' for more details.

Is this because I chose the wrong path? I tried more then one; and although libx11 is correctly installed, it isn't found... I also tried to find solutions in the inet, but none solved the problem

Thanks in advance
Make sure that you have installed the x-dev package. For the file not found it looks like you need libx11-dev.

Code:
>$ apt-file search libX11
ia32-libs: emul/ia32-linux/usr/X11R6/lib/libX11.so.6
ia32-libs: emul/ia32-linux/usr/X11R6/lib/libX11.so.6.2
libooc-x11-dev: usr/lib/oo2c/X11/libX11.Mod
libooc-x11-dev: usr/lib/oo2c/X11/obj/libX11.h
libooc-x11-dev: usr/lib/oo2c/X11/sym/libX11.Sym
libx11-6: usr/X11R6/lib/libX11.so.6
libx11-6: usr/X11R6/lib/libX11.so.6.2
libx11-6-dbg: usr/X11R6/lib/debug/libX11.so.6
libx11-6-dbg: usr/X11R6/lib/debug/libX11.so.6.2
libx11-dev: usr/X11R6/lib/libX11.a
libx11-dev: usr/X11R6/lib/libX11.so
You may want to install the apt-file package for future problems like this it works similar to apt-get get in that you must apt-file update as root then can use the search command as normal user.
 
Old 01-27-2006, 03:20 AM   #5
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by Carez
I've already tried with symlinks, didn't work.... any other ideas?
Mostly what happytux says above - make sure you have everything correctly installed and configured. Other than that, it has sometimes worked for me as well to actually get an -older- version of a library from its distribution site. Sometimes the older version would work, while the current / newest one wouldn't find its dependencies, for example.

If you are feeling adventurous, and the packager (the person putting the application togeteher) included his configure.in and maybe Makefile.am autoconf source files, you might try editing those to find the library correctly - but that is not for the faint of heart.
 
Old 02-03-2006, 06:32 AM   #6
Carez
LQ Newbie
 
Registered: Jan 2006
Location: Somewhere...
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 0
hey thanks, i tried your suggestions, they worked
 
Old 11-20-2008, 10:06 AM   #7
ainos984
LQ Newbie
 
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
Unhappy

hi, I have the same problem.
I followed all your advices, but it still don't work...
I don't know what to do, can someone help me?
thank
 
Old 11-20-2008, 01:08 PM   #8
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Dug up an old post there. You might want to paste in the exact error message.
 
  


Reply



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
install libX11 error! (xproto) totallybored Linux - Software 7 12-10-2019 05:02 PM
libX11 problem iankh Linux - Software 3 07-29-2004 06:30 PM
pango-1.0.5 can't find libX11.so.6, but it is on my system behmjose Linux - Newbie 3 02-21-2004 10:15 PM
libx11.so.6 and Tactical Ops greendemon Linux - Newbie 0 01-25-2004 09:29 AM
VectorLinux lilo not working and libX11.so.7 not found aalaap Linux - Newbie 0 11-06-2003 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:17 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