Problem in Glib installation
I am trying to install GTK+-2.16 on RHEL 4.5 with kernel version 2.6.9 . I downloaded "gtk+-2.16.0.tar.bz2", untar it then run ./configure. I got following error message -
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.19.7 atk >= 1.13.0 pango >= 1.20 cairo >= 1.6) 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.
Then I downloaded "glib-2.20.0.tar.bz2" . untar it then run the following in sequence
It had made glib2.0 folder in followings folder
and made glib-2.0.pc file in folder
I haven't set any PKG_CONFIG_PATH variable because all libraries are installed in default location.
but when I do -
rpm -q glib it displays-
glib-1.2.10-15....(Older Version) although it should show newer file.
Again when I went to gtk and did ./confiure , it shows same message as above ( about glib , pango and atk). I am very much stuck in it.
To solve above problem I again configured glib in different directory as
and added line in /etc/profile file as
export PKG_CONFIG_PATH = /usr/include/glib2.0
but above method is also not solving the problem
Prior to that I ahd installed higher version of pkg-config in /usr/pkg-config(User created folder) and made a symbolic link as
ln -s /usr/pkg-config/bin/pkg-config /usr/bin/pkg-config - I did this link to solve an issue related to pkgconfig package.
Please reply ......
Welcome to LQ.
First : What is the purpose of gtk-2.16 ?
A lot of applications will work with e.g. version 2.10.
The command to show glib2 :
rpm -qa | grep glib2
... the reply could be ..
( and glib2-2.4.7 is always installed )
rpm -qa | grep evolution28-
.. So some "new" version are available, with 'yum' or 'up2date'.
thanks for replying so fast.Purpose for gtk16 is to have a firefox of version 3.0.X.Since i have to update the firefox so I downloaded firefox source as "firefox-3.0.10-source.tar.bz2" . Untar it as
tar -jxvf firefox-3.0.tar.bz2 in directory /opt then to start the firefox I did the following -
# /opt/firefox/firefox then I got the error that
TO start firefox you need a gtk of version 2.10 and you have gtk of version 2.4.
I download gtk from www.gtk.org and did as mention in first posting of this thread.
No reason to compile / use firefox 3.0.10 .
The latest update is firefox-3.0.12-1.el4 .
So why not use it ?
Please get it with 'yum' or 'up2date'.
If you did not subscribe / pay for 'Redhat Support'
you can just download the package :
which is the free version from CentOS 4.8 = RH EL 4.8.
It uses the libs in /usr/evolution28/lib/ :
libgtk-x11-2.0.so.0 , etc. etc.
The dependencies :
P.S.: Even firefox 3.5.x runs perfect on gtk2-2.10, etc.
|All times are GMT -5. The time now is 05:17 PM.|