LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 01: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, 02:05 PM   #2
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 308

Rep: Reputation: 39
I'll give you a hint, google LDCONFIG
 
Old 02-07-2009, 02: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 02:44 PM.
 
Old 02-07-2009, 02: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, 05:11 PM   #5
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
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 10:18 AM.
 
  


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

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

All times are GMT -5. The time now is 05:14 AM.

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