pkg_config problem

John Vetterli jvetterli-zC6tqtfhjqE at public.gmane.org
Fri Mar 12 16:11:58 UTC 2004


On Fri, 12 Mar 2004, Vitaliy Babiy wrote:
> Does pkg-config ignore PKG_CONFIG_PATH?
> When I try to install libs from source, it is not recognised by
> pkg-config because the info
> ends up in /usr/local/lib/pkgconfig and pkg-config only looks in
> /usr/lib/pkgconfig because
> it was installed there. This is supposed to be solved by setting the
> env var
> PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
> ...but it simply doesn't work. It works when I recompile and install
> pkg-config to
> /usr/local/.... but then it doesn't recognize libs in /usr/lib/.
> Anyway, that's an ugly solution.
> I have RedHat Fedora core 1 now.

Wow.  I thought only Slackware and Gentoo users install from source.

"export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig" works for me.  (You are
exporting the new PKG_CONFIG_PATH, right?)  But I remember before I
discovered the existance of the PKG_CONFIG_PATH variable that manually
copying the *.pc files into /usr/lib/pkgconfig after installation worked
rather well.

I also tried "ln -s /usr/lib/pkgconfig /usr/local/lib/pkgconfig", thinking
that "make install" would then be tricked into putting the *.pc files into
/usr/lib.  It didn't work.  "make install" usually undid my symlink and
created a new /usr/local/lib/pkgconfig.

Good luck!

JV
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list