Click to See Complete Forum and Search --> : why I can't upgrade my gtk+


lxfg
08-19-2002, 06:58 AM
my os is red hat 7.3.I download gtk+2.0.6.tar.gz and use the following command:
tar -xzvf gtk+2.0.6.tar.gz
//goto gtk+2.0.6
./configure

an error occured: my pkgconfig and glib are too old
so I download them and use the following command:
tar -xzvf ~
./configure
make
make install
everything seems ok,but when i use the command :
rpm -q pkgconfig
I find it didn't upgrade ,the version didn't change.the same with glib.
what should i do?

mrBen
08-19-2002, 07:29 AM
Did you run ldconfig (as root) to reset the library information to include the new packages?

Energon
08-19-2002, 09:08 AM
The only way to upgrade an RPM is to use an upgraded RPM. Compiling from source won't update the RPM...

mrBen
08-19-2002, 10:18 AM
Doh! Yeah, misread that bit. Don't use rpm -q to check what you've got installed if you've been installing from source. Most software will have a -v flag to check the version. Alternative, see if ./configure on gtk+ works now :D

lxfg
08-19-2002, 08:23 PM
no,it didn't work yet.where can I get rpm

JohnT
08-19-2002, 08:34 PM
Originally posted by lxfg
no,it didn't work yet.where can I get rpm

http://rpmfind.net/linux/RPM/

lxfg
08-20-2002, 02:49 AM
I just download gtk2-2.0.1-1gtk.i386.rpm.
after i have installed ,I try this:
gcc helloworld.c -o helloworld `pkg-config --cflags --libs gtk+-2.0`
it failed.cann't find package gtk+-2.0.
Is my command right?what else i should do?