Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-07-2009, 02:46 PM   #1
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/ No such file or directly

No surprise there because 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
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
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
LQ Newbie
Registered: Dec 2006
Posts: 18

Original Poster
Rep: Reputation: 0
In my /etc/ I have


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 ->

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 does not show up yet that is in /usr/lib does?

Also I have 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?

Old 02-07-2009, 06:11 PM   #5
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,810

Rep: Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354
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 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.


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 > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration