LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-07-2016, 10:48 AM   #1
c0uchm0nster
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 62

Rep: Reputation: 15
pkg-config --exists fails but --list-all lists the package


I'm returning to linux after a several year hiatus and all is going more or less smoothly except for this one issue.

Running Debian Jessie on x64 with a few packages from stretch.

I'm trying to get pkg-config to recognize libgnomecanvas-2.0. Initially it didn't know about it at all, so I created a symlink:
jesse@anpanman-debian:~$ ls -l /usr/lib/pkgconfig/ | grep libgn
lrwxrwxrwx 1 root root 57 Jan 7 08:27 libgnomecanvas-2.0.pc -> /usr/lib/x86_64-linux-gnu/pkgconfig/libgnomecanvas-2.0.pc

This got it to be partially recognized, but --exists still refuses to acknowledge it:

$ pkg-config --exists libgnomecanvas-2.0
$ echo $?
1
$ pkg-config --modversion libgnomecanvas-2.0
2.30.3
$ pkg-config --list-all | grep libgnomecanvas-2.0
libgnomecanvas-2.0 libgnomecanvas-2.0 - libgnomecanvas
$ pkg-config --version
0.28


What am I missing to get --exists to acknowledge the package?
 
Old 01-07-2016, 03:36 PM   #2
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Did you try the "--print-errors" option? There could be a dependency problem. All of the information that you posted comes from the .pc file.

There's also PKG_CONFIG_DEBUG_SPEW. See the man page.
 
1 members found this post helpful.
Old 01-10-2016, 07:47 PM   #3
c0uchm0nster
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 62

Original Poster
Rep: Reputation: 15
print-errors did show a dependency problem. I got myself into trouble trying to get cmake from the testing repos. I ended up paving the system and compiling cmake myself against stable. Turns out it works just fine and I don't run into tons of dependency hell like with testing.

Thanks for the pointer!
 
  


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
[SOLVED] Slackware Pkg Mgr lists test package jfbooth Slackware 2 09-08-2015 04:45 PM
pkg-config error , no package found... anks Linux - Software 5 05-25-2014 11:46 AM
Package gstreamer-0.10.23 was not found in the pkg-config search path. HarryBoy Linux - Newbie 1 12-16-2009 03:41 PM
pkg-config can't find installed package JAKK Slackware 16 08-11-2008 09:07 AM
DPKG & "files list file for package `pkg-config' contains empty filename" error :( Angelus Debian 2 04-02-2005 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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