LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2008, 09:35 AM   #1
haroldjclements
LQ Newbie
 
Registered: May 2008
Distribution: Fedora Core 8 (WMware)
Posts: 22

Rep: Reputation: 0
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
 
Old 05-02-2008, 11:27 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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
 
Old 05-04-2008, 02:19 PM   #3
haroldjclements
LQ Newbie
 
Registered: May 2008
Distribution: Fedora Core 8 (WMware)
Posts: 22

Original Poster
Rep: Reputation: 0
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
 
Old 05-04-2008, 02:26 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing GTK and Glib? henry_huckem Fedora 12 01-23-2005 02:04 PM
Help installing Glib and Gtk RPM's henry_huckem Linux - Software 3 01-23-2005 02:22 AM
Installing gtk,glib, pango af_dave Linux - Software 5 07-28-2004 04:48 AM
Problems installing glib and gtk+ 1.2.10... khermans Linux - Software 4 10-02-2002 10:47 AM
Installing GTK+-2.0.6 & GLIB-2.0.6 Kryptow Linux - Newbie 5 09-06-2002 09:33 AM


All times are GMT -5. The time now is 06:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration