Ubuntu – Installed babl, but gimp2.7 still says No package ‘babl’ found


I asked this question minutes ago. I am trying to install babl for gimp2.7 using this guide However after I sudo make install babl and ./configure gimp, I still get the following error.

No package 'babl' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BABL_CFLAGS
and BABL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I installed babl with the prefix /opt/gimp-2.7 as in the guide

On using locate, I get

    locate babl

My $Path


(I added the /babl and /usr/lib)

Where is the fault? Is babl not installed properly? If yes, How do I rectify it? Is the path improper? Where should a 'package' be installed to be findable?

Best Answer

  • It looks like you need to adjust your PKG_CONFIG_PATH environment variable so the configure script can properly resolve the location of the babl library that you installed in the previous step.

    You can do so in two ways:

    export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/opt/gimp-2.7/lib/pkgconfig/"

    which will take the current value of PKG_CONFIG_PATH and append /opt/gimp-2.7/lib/pkgconfig/ to it.

    When using export the value of PKG_CONFIG_PATH variable will persist during single terminal session. Once the command above is run you can invoke configure script as normal:

    ./configure --prefix=/opt/gimp-2.7

    Another way to achieve the same end result would be to invoke the configure script as below:

    PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/opt/gimp-2.7/lib/pkgconfig/" ./configure --prefix=/opt/gimp-2.7

    When invoked in this way the value of the PKG_CONFIG_PATH will only be modified for the time of execution of the configure script.

  • Related Question