LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-05-2006, 07:41 PM   #1
acidblue
Member
 
Registered: Apr 2003
Posts: 152

Rep: Reputation: 15
Need to update glib and gtk


I installed glib-2.8 went ok, but when i check slackpkg search glib*
it returns "installed glib-1.2'
I need to update glib so i can update gtk
gtk won't install it needs glib >= 2.8.
So how do i update glib???
I need these so I can install python-gtk.
I need python-gtk so I can install Rox file manager.
There are other mangaers I like to try as well but they all require gtk-2.8.
Slack 10.2 comes with gtk-2.6
running into dependency hell here.
 
Old 02-05-2006, 09:03 PM   #2
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
There are 2 Glib's that can co-exist side by side.

GLib-1.2.10
GLib-2.8.6


If you want the latest gtk+2-2.8.11, you should probably update all the deps. That's probably what I would do anyway. Here's a build order:

pkg-config-0.20 ( ./configure --prefix=/usr )
glib-2.8.6 ( ./configure --prefix=/usr ) (package name must be glib2-2.8.6)
atk-1.10.3 ( ./configure --prefix=/usr )
cairo-1.0.2 ( ./configure --prefix=/usr )
pango-1.10.2 ( ./configure --prefix=/usr --sysconfdir=/etc )
gtk+-2.8.11 ( ./configure --prefix=/usr --sysconfdir=/etc ) (package name must be gtk+2-2.8.11)


Thats not dependency hell... You can try using the existing pkgconfig, atk and pango that's on Slackware. Not sure if the other packages will mind or not.

I forgot to clarify, using slackpkg to check for installed packages only looks for packages that were installed thru pkgtool. If you did a configure, make, make install on glib-2.8.6 then slackpkg, pkgtool or anything else like that will never report your new installs. Also makes it somewhat difficult if you want to remove them later unless you keep the source code after your done with it (make uninstall).

Last edited by jong357; 02-05-2006 at 09:08 PM.
 
Old 02-17-2006, 12:24 AM   #3
skishak
LQ Newbie
 
Registered: Feb 2006
Distribution: Fedora Core 6
Posts: 10

Rep: Reputation: 0
Quote:
There are 2 Glib's that can co-exist side by side.

GLib-1.2.10
GLib-2.8.6
I have installed GLib 1.2.4 and I'm trying to install xmms1.2.10, but it cannot complete ./configure because it found GLib-1.2.10.

This is the actual message;

Code:
checking for glib-config... /usr/local/bin/glib-config
checking for GLIB - version >= 1.2.2...
*** 'glib-config --version' returned 1.2.4, but GLIB (1.2.10)
*** was found! If glib-config was correct, then it is best
*** to remove the old version of GLIB. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If glib-config was wrong, set the environment variable GLIB_CONFIG
*** to point to the correct copy of glib-config, and remove the file config.cache
*** before re-running configure
no
configure: error: *** GLIB >= 1.2.2 not installed - please install first ***
Being a newbie I understand what I have to do, but don't know how. Where is the older version and how do I delete it?
 
Old 02-17-2006, 03:20 AM   #4
marco.uk
Member
 
Registered: Dec 2005
Location: London, United Kingdom
Distribution: OpenSUSE 10.1, Centos 4.3
Posts: 33

Rep: Reputation: 15
Hi,

You also have to install GLib-2.8.6 .
 
Old 02-26-2006, 03:16 PM   #5
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Lightbulb

Quote:
Originally Posted by acidblue
I installed glib-2.8 went ok, but when i check slackpkg search glib*
it returns "installed glib-1.2'
I need to update glib so i can update gtk
gtk won't install it needs glib >= 2.8.
So how do i update glib???
I need these so I can install python-gtk.
I need python-gtk so I can install Rox file manager.
There are other mangaers I like to try as well but they all require gtk-2.8.
Slack 10.2 comes with gtk-2.6
running into dependency hell here.
Hey man, I had a similar problem, and I couldn't unravel the dependencies so I gave up. But today I found that there is a binary package for x86 for rox filer...you were probably trying to install rox-all like I was, right?

You can install the binary package without any dependencies. Go back to the sourceforge page and look for rox-filer instead of rox-all. I just tarred it -zxvf and ran ./install.sh like it said. Very simple even for a guy only a couple weeks into linux. Now if I can just figure out how to customize it!
 
Old 02-26-2006, 05:32 PM   #6
SaintsOfTheDiamond
Member
 
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139

Rep: Reputation: 15
I've been having the exact same problem trying to get gaim 2.0 installed. I kept thinking I had it all working then gaim would return an error about GTK+ when I tried to install it. I used pkgtool to remove all the instances of glib-2.* and GTK+-2.* and got them to all reinstall alright, but I still can't figure out gaim. I'd try to remove everything with pkgtool then rebuild the latest glib and GTK+ making sure you use ./configure --prefix=/usr instead of just plain ./configure and try checkinstall (as root) instead of just make install. Those two changes (along with updating atk, pango, and cairo like jong357 said) *seemed* to get my glib and GTK+ issues out of the way.
 
Old 02-27-2006, 01:53 PM   #7
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Yea, I can't wait untill 11.0 comes out. Seems Pat fell behind there for awhile on G packages. Most everything requires a 2.8 version now-a-days to run. You guys won't have these headaches anymore with 11.0... I suppose you could upgrade to current as well. It looks as if he has all new versions of everything I listed above.

@skishak

Sounds like you have both libraries on your system. I have no idea where you got 1.2.4 from. That's a really old version that shouldn't be on your system. 1.2.10 is the latest/last version of v1 Glib and that's what you need on your system. Looks as if it's saying your glib-config is from 1.2.4 and libraries are from 1.2.10... I'm going to guess that you built glib-1.2.4 yourself and installed it via 'make install'... Something wierd is happening there anyway. xmms compiles and installs perfectly fine on a stock Slackware system without any extra work from you.
 
Old 03-01-2006, 12:42 PM   #8
Widgeteye
Member
 
Registered: Mar 2005
Posts: 130

Rep: Reputation: 17
Quote:
Originally Posted by skishak
Being a newbie I understand what I have to do, but don't know how. Where is the older version and how do I delete it?
Use pkgtool to remove oldies.
 
Old 03-01-2006, 01:00 PM   #9
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by acidblue
I installed glib-2.8 went ok, but when i check slackpkg search glib*
it returns "installed glib-1.2'
I need to update glib so i can update gtk
gtk won't install it needs glib >= 2.8.
So how do i update glib???
You need not to add astreisk to searched package name. Even if it's not protected by quotes it may expand to filenames in current directory.
You may just type
Code:
slackpkg search glib
You'll see package name for glib 2.x is named glib2 not glib. To install/upgrade current version
Code:
slackpkg install glib2
should do the job.
 
Old 03-16-2006, 08:53 AM   #10
PhilK
LQ Newbie
 
Registered: Mar 2006
Distribution: openSUSE 10.2
Posts: 17

Rep: Reputation: 0
GNOME fails to load after installing Pango and GLIB et al

posted to wrong forum

Last edited by PhilK; 03-16-2006 at 09:04 AM.
 
  


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
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
glib and gtk + charnel Linux - Software 3 04-13-2005 10:46 AM
GLIB and GTK deucedlt Linux - Newbie 1 01-27-2005 11:43 AM
can't install gtk 2.4.4: "Requested 'glib-2.0 >= 2.4.0' but version of GLib is 2.2.3 webazoid Linux - Software 0 07-15-2004 06:07 PM
Gtk/glib tombomb300 Linux - Software 7 10-01-2003 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:54 PM.

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
Open Source Consulting | Domain Registration