Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
/usr/lib/babl-0.0
/usr/lib/libbabl-0.0.so.0
/usr/lib/libbabl-0.0.so.0.22.0
/usr/lib/babl-0.0/CIE-Lab.so
/usr/lib/babl-0.0/gegl-fixups.so
/usr/lib/babl-0.0/gggl-lies.so
/usr/lib/babl-0.0/gggl.so
/usr/lib/babl-0.0/gimp-8bit.so
/usr/lib/babl-0.0/naive-CMYK.so
/usr/lib/babl-0.0/sse-fixups.so
/usr/share/doc/libbabl-0.0-0
/usr/share/doc/libbabl-0.0-0/AUTHORS
/usr/share/doc/libbabl-0.0-0/NEWS.gz
/usr/share/doc/libbabl-0.0-0/README.gz
/usr/share/doc/libbabl-0.0-0/TODO
/usr/share/doc/libbabl-0.0-0/TODO.Debian
/usr/share/doc/libbabl-0.0-0/changelog.Debian.gz
/usr/share/doc/libbabl-0.0-0/copyright
/var/cache/apt/archives/libbabl-0.0-0_0.0.22-1build1_i386.deb
/var/lib/dpkg/info/libbabl-0.0-0.list
/var/lib/dpkg/info/libbabl-0.0-0.md5sums
/var/lib/dpkg/info/libbabl-0.0-0.postinst
/var/lib/dpkg/info/libbabl-0.0-0.postrm
/var/lib/dpkg/info/libbabl-0.0-0.shlibs

My $Path

/opt/gimp-2.7/bin:/opt/gimp-2.7/bin:/home/abc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/real/RealPlayer:/babl:/usr/lib

(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?

share|improve this question
1  
Why are you compiling gimp 2.7 - You could install via a ppa... Have you read this as well (section about babl)? only10types.com/2010/06/… –  fossfreedom Aug 13 '11 at 16:00
    
@fossfreedom I wanted to keep gimp 2.6 too.Doesn't the PPA version overwrite the stable gimp? –  abel Aug 13 '11 at 16:05
    
correct - but that would be an interesting question itself! –  fossfreedom Aug 13 '11 at 16:10
1  
@abel Can you verify that babl installed correctly? If you installed it as per the linked guide it should be in /opt/gimp-2.7. To check, simply issue ls /opt/gimp-2.7/lib/ on command-line. Also, remember that if you set your PKG_CONFIG_PATH it's not persisted across different terminal sessions so you have to set it again if you close / open your terminal window. If babl installed correctly, go to directory with gimp sources and do PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/opt/gimp-2.7/lib/pkgconfig/ ./configure --prefix=/opt/gimp-2.7. HTH. –  ppb Aug 13 '11 at 17:14
1  
@abel Apologies, there's a missing double quote in there, it should be PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/opt/gimp-2.7/lib/pkgconfig/" ./configure --prefix=/opt/gimp-2.7 –  ppb Aug 13 '11 at 17:26
show 3 more comments

1 Answer 1

up vote 2 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.