PDA

View Full Version : Help gtk+ install


aloneattack
10th July 2007, 07:52 AM
Hi, I'm trying to install gtk+-2.10.13 from source, and I get error:

checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.12.0 atk >= 1.9.0 pango >= 1.12.0 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.

ok, now I check some package, all proper except one glib-1.2.10-26.fc6 is not proper.
Then, I try to uninstall it but it's say it can not be remove cause dependences.
I attempted to install glib-2.12.12 from source, by default ./configure and completely installing.
But I still get the same above error when attempt to install gtk+-2.10.13
Please help.

markkuk
10th July 2007, 12:13 PM
Hi, I'm trying to install gtk+-2.10.13 from source,
Why? If you just want to learn how to install stuff from sources, you should find a package that doesn't replace basic Fedora RPMs. If you are using FC5 or older, you should upgrade to FC6 or Fedora 7, where gtk+-2.10.13 is available as a RPM.

GregLee
10th July 2007, 10:43 PM

I attempted to install glib-2.12.12 from source, by default ./configure and completely installing. But I still get the same above error when attempt to install gtk+-2.10.13
You're not being completely clear. Did you actually install glib-2.12.12 with configure/make/make install? And if so, was the error reported for gtk+-2.10.13 exactly the same as before -- i.e., did it say "No package 'glib-2.0' found"? If both these things are true, it's a mystery.

However, if your attempt to install glib-2.12.12 was unsuccessful, then that's what is wrong. Or if the configure for gtk+-2.10.13 merely reported that no atk, pango, or cairo were found, then since you haven't compiled those yet, then that's the problem.

aloneattack
11th July 2007, 01:47 PM
I use FC6 but "yum update gtk+" or "yum install gtk+" make no effort.
and I have done "configure/make/make install" with installing of glib-2.12.12 from source.
but still have the same problem.
is it a mystery ?
I use rpm -q to check
atk-1.12.2-1.fc6
pango-1.14.10-1.fc6
cairo-1.2.6-1.fc6

but glib is still :
glib-1.2.10-26.fc6

and I have check that, my system have /usr/local/lib/pkgconfig/glib-2.0.pc
and it contains :

prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

glib_genmarshal=glib-genmarshal
gobject_query=gobject-query
glib_mkenums=glib-mkenums

Name: GLib
Description: C Utility Library
Version: 2.12.12
Libs: -L${libdir} -lglib-2.0
Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include

Huh ! confuse.

markkuk
11th July 2007, 02:00 PM
I use FC6 but "yum update gtk+" or "yum install gtk+" make no effort.
The package "gtk+" is GTK version 1.*. Install/update the package gtk2 for GTK+ version 2.

aloneattack
11th July 2007, 06:30 PM
I'm sorry, I don't know why, ít said :

Nothing to do
or
Could not find update match for gtk2
No Packages marked for Update/Obsoletion

markkuk
12th July 2007, 10:06 AM
You have the latest version of gtk2 already installed on your system. Check with "rpm -q gtk2" or "yum list installed gtk*"

aloneattack
12th July 2007, 01:26 PM
But ./configure script in ethereal-0.99.0 source package say that:

checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error: GLib2 distribution not found.

The package "gtk+" is GTK version 1.*. Install/update the package gtk2 for GTK+ version 2.

and does my system has problem ?

markkuk
12th July 2007, 02:42 PM
You must install the gtk2-devel and glib2-devel packages to compile programs that use those libraries. However, there's no need to compile ethereal from sources because it's included in FC6 under its new name Wireshark (http://www.wireshark.org/). Do:
yum install wireshark wireshark-gnome

aloneattack
12th July 2007, 04:40 PM
Yes, I installed gtk2-devel and glib2-devel package and the original problem have been solve

But I have a trouble that we depend on rpm, when we need build something from source for the lack of rpm package, it's have some difficult. Just like my problem above. How it is if you have only source for a new version package and can't remove some old rpm package cause it's have dependencie.

Any way, thank you.

aloneattack
31st August 2007, 03:08 AM
Ok, I found out, to remove rpm package when it says "dependencies"

rpm -e --nodeps <package_name>

Thank you all.