[Mono-list] Re: Some general advice for a newbie, please

Mark Eggers mdeggers@earthlink.net
Sat, 01 Jan 2005 12:56:57 -0800


On Fri, 31 Dec 2004 18:35:22 +0000, peter wrote:


> The problem line in configure is:
> 
> if pkg-config --atleast-version 0.1.22 cairo; then
>         echo Cairo installation OK
> 
> Returns false at the command line as well.
>

Matt,

See the following web site:

http://webpages.charter.net/mdeggers/howto-mono-fedora.html

As noted in the Build Environment area, you'll need to set the
PKG_CONFIG_PATH environment variable so that pkg-config finds all the
configuration files if you're installing in other than /usr.  On Fedora
Core 3 in bash, the command looks like:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig

if you're installing into /usr/local.

In general, you'll want to find the directories that have .pc files and
add them to the environment variable.

If you make a habit of installing in /usr/local, then you might consider
changing the environment variable in /etc/profile.  Just add:

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig

to the file, and all users should get that when they log in.  Make sure
that you've found all the resting places for the pkg-config files.

HTH

/mde/
just my two cents . . . .