LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems Installing gtk+-2.12.6 (glib-2.16.0) (https://www.linuxquestions.org/questions/linux-newbie-8/problems-installing-gtk-2-12-6-glib-2-16-0-a-639349/)

haroldjclements 05-02-2008 08:35 AM

Problems Installing gtk+-2.12.6 (glib-2.16.0)
 
Hello all, I hope that I have posted this question in the correct forum!

I am new to Linux and I am having problems building the ‘gtk+-2.12.6’ package.

Code:

checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.13.5    atk >= 1.9.0    pango >= 1.17.3    cairo >= 1.2.0) were not met:

No package 'glib-2.0' found
No package 'atk' found
No package 'pango' found
No package 'cairo' 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 BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

[root@vm-fedora-8 gtk+-2.12.6]#

I have build and installed ‘glib-2.16.0’ and ‘glib-2.0.pc’ can be found in ‘usr/local/lib/pkgconfig/’.
I have also added the above location to my $PATH, $PKG_CONFIG_LIBDIR, $PKG_CONFIG and $PKG_CONFIG_PATH.

I think that I may not have set them correctly (PKG_CONFIG_PATH=$ PKG_CONFIG_PATH:/usr/local/lib/pkconfig), any advice will be gratefully received

Do I need to set my path in ‘pkg-config’? If so, how?

Obviously the ‘gtk+-2.12.6’ package is not seeing ‘glib-2.16.0’. However, I am new to Linux and I do not know what else to try.

Any help will be gratefully received,
Harold Clements

GrapefruiTgirl 05-02-2008 10:27 AM

Hi there!

Note that GLIB and GLIB2 are two different (though similar) packages.

Your configure error indicates that you do not have a sufficiently recent GLIB2 package. "glib-2.16.0" refers to GLIB, not GLIB2. Many people, myself included, have been temporarily stumped by this naming similarity.

Now, you haven't told us what Linux you are running (adding it to your profile would be good) but you can likely use your package manager to look at what versions of which package you have installed, and upgrade/install the missing packages as necessary.

Be mindful that when installing or upgrading such things as GLIB, GLIB2, GLIBC, other things may break, or weird things may happen (particularly with GLIB and GLIBC for sure).
Anyhow, if your package manager tells you that you do indeed have the required versions of these things installed already, then you will have to revisit the $PATHS you are specifying for the GTK build.
FWIW, I installed/upgraded the dependencies on my Slackware 11.0 machine so I could install GTK+ a while back, and ran into no issues.

Good luck!
Sasha

haroldjclements 05-04-2008 01:19 PM

Hello Sasha, thank you very much for your email

It seems that I had to export my $PKG_CONFIG_PATH.
Code:


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

Thanks very much for your time,
Harold Clements

GrapefruiTgirl 05-04-2008 01:26 PM

Interesting!
Happy to have tried to help, and hopefully the remainder of the build will go well for you.
I can imagine that some things are slightly non-standard (paths etc.), as you are using VMware, let alone using FC8 ;), neither of which I have tried, but am hesitant none the less.

Best of success -- Cheers :)

Sasha


All times are GMT -5. The time now is 02:56 PM.