.pc file problem

Leslie Katz lesliek19 at yahoo.com.au
Sun Sep 17 12:18:07 PDT 2006


 I'm trying to install an application called democracyplayer. There's no 
RPM for my system (FC3), so I've been trying to install the application 
from the tarball. 
 
I've run the installation script a number of times now. Each time it's 
stopped before completion, complaining that I'm missing something. I've 
been able in each case to add the missing something and so be able to 
get a bit further next time I run the installation script. However, this 
latest complaint I haven't been able to figure out. 
 
When I run the installation script now, the output I get is as follows: 
 
"Traceback (most recent call last): 
File "setup.py", line 175, in ? 
packages = getCommandOutput("pkg-config --list-all") 
File "setup.py", line 124, in getCommandOutput 
raise RuntimeError("%s outputted the following error:\n%s" % 
RuntimeError: pkg-config --list-all outputted the following error: 
Package oaf was not found in the pkg-config search path. 
Perhaps you should add the directory containing `oaf.pc' 
to the PKG_CONFIG_PATH environment variable 
Package 'oaf', required by 'gconf', not found" 
 
The man page for pkg-config says that, 
 
"pkg-config retrieves information about packages from special  metadata 
files.  These  files  are  named after the package, with the extension 
.pc. By default, pkg-config looks in the directory  prefix/lib/pkgcon- 
fig for these files; it will also look in the colon-separated (on Win- 
dows,  semicolon-separated)  list  of  directories  specified  by  the 
PKG_CONFIG_PATH environment variable." 
 
When I look in /usr/lib/pkgconfig, I find 105 .pc files, but they don't 
include oaf.pc. 
 
When I look for the PKG_CONFIG_PATH environment variable by using the 
command env, I find I have no such environment variable. 
 
Given what the man page says, it's obvious why pkg-config is telling me 
that it can't find the oaf package. 
 
Therefore, I first imagined that I should: first, create the environment 
variable PKG_CONFIG_PATH; and, secondly, add to that variable "the 
directory containing `oaf.pc'". 
 
However, although I have on my system the oaf and oaf-devel RPMS, when I 
check the files they say they provide, I can't find any file named 
oaf.pc, let alone a directory containing it. Nor can I find such a file 
otherwise. 
 
I assume that means I have to create the file and store it in the 
/usr/lib/pkgconfig directory. 
 
Under the heading "METADATA FILE SYNTAX", the pkg-config man page has 
instructions for installing a .pc file in libdir/pkgconfig (which I 
assume in my case is /usr/lib/pkgconfig), but they assume a level of 
knowledge I simply don't have. 
 
Can anyone tell me in words of one syllable how I should create oaf.pc? 
 
 
 
 
 
 
 
 
 
 
 
 
 





More information about the pkg-config mailing list