LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-23-2004, 02:46 AM   #1
foxy123
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 191

Rep: Reputation: 30
Angry Glib, GTK and XMMS plugins - help required!!!


I have been trying to install some xmms plugins in vain for the last few days (weeks?). The problem is that the configure says that I do not have GLIB 1.2.2 or GTK 1.2.2 installed on my system. However I installed all gtk and glib packages available in YaST. I tried to install the rpms and sources I managed to find in the Internet, but nothing helps. I know that there was a number of similar topics here but no suitable solution. Any help?
 
Old 12-23-2004, 06:40 AM   #2
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
I've had similar problems with gtk, glib, pango and various others in SuSE 9.1 repeatedly. SuSE installed the rpms to a non-standard location (/opt instead of /usr or /usr/local) and did not correctly sign them up with pkg-config (or hid pkg-config in /opt where configure routines couldn't find it).

I've used symlinks in /usr and /usr/local pointing to the corresponding /opt locations, and newer versions of such libraries compiled from source (which then end up where configure routines seem to expect them), and in some cases I've written stub *.pc files for pkg-config in order to get things running correctly.

Robin
 
Old 12-23-2004, 06:52 AM   #3
foxy123
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 30
thanks, but it sounds quite complicated for me

I think I will manage symlinks, although I am not sure if I know all the files/folders I have to link, but "stub *.pc" is absolute Greek to me. Any chance to write a brief how-to?
 
Old 12-23-2004, 07:10 AM   #4
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
Ok, I'm writing this from memory, I'm not on a Linux machine right now, so forgive me if there are any errors. I can check the info later, if things don't work.

First, only if configure says something about adding the path to, say, glib.pc to your PKG_CONFIG_PATH variable, or something like that, do you need to worry about *.pc files.

Pkg-config is a program which keeps information about various libraries in a central organization, usually in /usr/lib/pkg-config, but it could be in /opt/lib/pkg-config, too. You'll have to find out, where that directory is. The correct directory contains lots of files with the extension .pc.

Now, if there actually is a file called something like glib.pc or whatever is missing in that directory, but configure doesn't find it, then you can either actually add that directory to your PKG_CONFIG_PATH variable, or you can put a symlink to the directory into /usr/lib and /usr/local/lib - these are in the variable already. (Test by entering 'echo $PKG_CONFIG_PATH' at a command line).

If there is no such file in the directory and you can't find it anywhere else, you'll have to make one yourself or compile glib new from source. I personally have no idea what information the correct glib.pc file has, but if you look at any *.pc file you'll quickly find out how it works. There are paths to certain directories, a very important version number (set it to at least that which your program is looking for, but make sure you actually have a working version, too), and various information about dependencies, which I always leave out - after all I'm lying through my teeth anyway when I write my own .pc files. Most of the time that works quite well.

In order to make a working pc file I usually just copy one that already exists, give it the name the configure process tells me it expects, and adjust the data about paths and version number, and delete all the other entries, especially dependencies.

Robin
 
  


Reply



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
xmms install (needs glib>1.22), just installed glib 2.4.8 and still get error message eskiled Linux - Software 2 12-19-2005 09:12 PM
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
Trouble installing XMMS, gtk/glib issues. MDBlueIce Linux - Newbie 11 02-26-2005 09:00 PM
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
GLIB 2.0.0 or better is required deanmeyer Linux - Software 1 07-04-2004 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:24 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