Re: Glib-1.144 compile error



On 16/03/07, Jeffrey Ratcliffe <jeffrey ratcliffe gmail com> wrote:
Now, trying to compile Cairo-1.023, I get the following error:

$ perl Makefile.PL PREFIX=/caehome/ra28145
*** can not find package cairo >= 1.0.0
*** check that it is properly installed and available in PKG_CONFIG_PATH
  at Makefile.PL line 56

But:

$ pkg-config --modversion cairo
1.4.0

If I run pkg-config from within perl:

system "pkg-config --modversion glib-2.0";

gives

2.12.11

But

system "pkg-config --modversion cairo";

gives

Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'freetype2', required by 'cairo', not found

Now

PKG_CONFIG_PATH=/caehome/ra28145/lib/pkgconfig:/usr/lib/pkgconfig

The difference between glib-2.0 and cairo is that the glib-2.0 and
cairo libraries are in /caehome/ra28145/lib/pkgconfig and the
freetype2 library is in /usr/lib/pkgconfig.

What is it about the environment in perl that means that the full
PKG_CONFIG_PATH is not respected, unlike from bash, where everything
is OK?

Jeff



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]