LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-07-2009, 02:46 PM   #1
paulclark
LQ Newbie
 
Registered: Dec 2006
Posts: 18

Rep: Reputation: 0
How does the system know where libraries are?


I am having a problem compiling pango. It fails with

grep: /usr/local/lib/libxcb-xlib.la: No such file or directly

No surprise there because libxcb-xlib.la is in /usr/lib. I can fool the configure into working by linking the library into /usr/local/lib but want to fix the root problem.

I have tried re-installing libxcb-1.0 to make sure I used prefix=/usr not /usr/local but that made no difference.

What I don't know is how my system thinks the library is in /usr/local/lib not /usr/lib. Or at least Pangos configure thinks that but why? Where would this information be stored?

Paul Clark
 
Old 02-07-2009, 03:05 PM   #2
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 307

Rep: Reputation: 38
I'll give you a hint, google LDCONFIG
 
Old 02-07-2009, 03:41 PM   #3
stratotak
Member
 
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

Rep: Reputation: 39
do you have the -dev package for that lib installed??


never mind..i read your post wrong..

Last edited by stratotak; 02-07-2009 at 03:44 PM.
 
Old 02-07-2009, 03:44 PM   #4
paulclark
LQ Newbie
 
Registered: Dec 2006
Posts: 18

Original Poster
Rep: Reputation: 0
In my /etc/ld.so.conf I have

---------------
/usr/local/lib
/usr/X11R6/lib
---------------

I have run /sbin/ldconfig

I also tried

/sbin/ldconfig -v | grep libxcb-xlib

and the response was

/sbin/ldconfig: Path `/usr/lib' given more than once
libxcb-xlib.so.0 -> libxcb-xlib.so.0.0.0

So now I don't know why it says the path is given more than once when it isn't given at all and the libxcb-xlib.la does not show up yet libxcb-xlib.so.0.0.0 that is in /usr/lib does?

Also I have libxcb-xlib.so and libxcb-xlib.a sitting in there but not showing up? Why would the Path be given more than once as that sounds wrong and may be my problem?

Paul
 
Old 02-07-2009, 06:11 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
The 'pango' configure script will look in
/usr/lib/pkgconfig/xcb.pc or one or more of
the other 21 ? xcb**.pc scripts and may be
also in libxcb-xlib.la or libxcb****.la
( also text files ).

" .pc files " should all say prefix=/usr/,
" .la files : libdir='/usr//lib'.

If you have an error in one of those 44 files,
it may cause the error, you have with the path.

And take care, that no xcb is in /usr/local/lib/pkgconfig/

Suggest : reinstall the libxcb,
may be with another version.

( It can also be a bug in pango.)
....

Last edited by knudfl; 02-09-2009 at 11:18 AM.
 
  


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
VME libraries on new system MVME6100 CRudolph Linux - General 3 08-04-2008 11:15 AM
GNU Build System and Libraries orwb Programming 1 12-06-2007 02:09 PM
Where are the Standard C Libraries in my file system? nunya_biniss Linux - Newbie 4 10-13-2007 07:18 PM
what system libraries controls login? drkstr Programming 2 10-08-2006 05:11 AM
Will more shared libraries slow down my system? Yalla-One Slackware 5 04-20-2005 04:01 PM


All times are GMT -5. The time now is 08:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration