LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-20-2003, 10:43 AM   #1
lynxgogo
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Linux SuSE 9.3 Pro 64-bit
Posts: 58

Rep: Reputation: 15
Unhappy COglib-2.0 & PKG_CONFIG_PATH problem


Dear Linux-friends,

For some days now i'm trying to install xine (ui & gxine). The engine has been fired up and xine-ui has been added - they work. But now i'm trying to install gxine.

"./configure" went well but with " make" it stops half way trough.

I got the following messages:
"checking for glib-2.0 >= 2.0.0.... Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory contains "glib-2.0.pc" to the PKG_CONFIG_PATH enviroment variable.
No Package "glib-2.0" found.
... consider adjusting the PKG_CONFIG_PATH enviroment variable if your liberies are in a nonstandard prefix so pkg-config can find them"

I'm working with RedHat 9.0 (with the latest kernel updates. The packages i'm installing are:
gxine-0.3.3 ; xine-lib-1-beta12 ; xine-ui-0.9.21

What can i do to solve this problem? Who do i know that i haven't got the "glib-2.0" package. Or is the problem that i have a higher version of glib?

Can somebody give this newbie some push in the right direction?

Thanx
Marcel (Netherlands > that's why the English is that good)
 
Old 08-20-2003, 10:52 AM   #2
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 31
Okay, Try re-installing [or installing] glib. Download the rpm from redhat, and then install it with "rpm -U glib-xxxxx.rpm". Hope this helps,
 
Old 08-20-2003, 01:00 PM   #3
lynxgogo
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Linux SuSE 9.3 Pro 64-bit
Posts: 58

Original Poster
Rep: Reputation: 15
Thanx, ho-10. I tried, but both glib packages were already installed was the message.
Do you know an other trick?

Marcel
 
Old 08-20-2003, 06:50 PM   #4
cantrooper
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Rep: Reputation: 0
Ive got exactly the same problem. I know that RH9 already includes GLIB (and a bunch of libraries part of GTK such as Pango and ATK). But when I try to install a new app I always find the same error that GLIB is not installed. Since I am installing everything on my /usr/local directory I might think that somehow PKG_CONFIG_PATH should be updated somehow on where to look for the new libraries. I have tried installing all the newest versions and still no luck. If you find the solution please let me know...this is what ive found so far.

Manuel
 
Old 08-23-2003, 02:18 AM   #5
lynxgogo
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Linux SuSE 9.3 Pro 64-bit
Posts: 58

Original Poster
Rep: Reputation: 15
I probably found out that the problem is concentrated in the pkg-config file - "/usr/bin/pkg-config" - it seems tottaly messed up.

Does anybody know if i can simply replay this file [by adding: "pkgconfig-0.14.0-3.i386.rpm"], or do i get other problems then.

Marcel
 
Old 10-01-2003, 04:17 PM   #6
starrcannon
LQ Newbie
 
Registered: Sep 2003
Location: Pacific Northwest
Distribution: Recompiled Redhat
Posts: 8

Rep: Reputation: 0
Unhappy RH9 pkg-config problems here to

Would like to find information on how to edit the PKG_CONFIG_PATH, i am able to find my "missing" libraries with $locate <filename> so i see that they are all indeed there, but pkg-config doesnt see them any help for a newbie trying to learn Linux, C/C++, and compile stuff that isnt in RPM form please post if you have an answer.
Thanks in advance,
Rob
 
Old 10-01-2003, 04:47 PM   #7
Asmodeus
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat 9.0 (or 9.1...I can't remember :D)
Posts: 6

Rep: Reputation: 0
Hmm, looks like I've come to the right place. A few of the games I'm trying to install (Quadra, fooBilliards) will go through the cofigure process almost all the way, then it tells me that Glib isn't found....I've tried a few of the options to have it look in different paths, but it's no use : \ . Anyway, I'll keep an eyeball on this thread, and if I find anything else out, I'll certainly post on here to let you guys know!

Thanks in advance for any help...
 
Old 10-01-2003, 05:06 PM   #8
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Trying to remember what I did the few times I've come up with similar
problem

locate glib-2.0.pc

export PKG_CONFIG_PATH=/path_you've_located/glib-2.0.pc:$PKG_CONFIG_PATH

may help, but won't do any harm either way
 
Old 10-01-2003, 05:38 PM   #9
Asmodeus
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat 9.0 (or 9.1...I can't remember :D)
Posts: 6

Rep: Reputation: 0
Hmm....I've got a *ton* of glib files, but none with the ".pc" extension on them....I've got quite a few of them with ".so" and some other stuff, I can either e-mail you or paste the results up on here if you'd like...
.
.
.
After doing some checking, I realized... *slaps forehead* actually, it's libpng that is the issue on the game I was trying to install. I'm going to try the same thing with your advice though, as I *believe* it should work no matter what the library right?
 
Old 10-01-2003, 05:42 PM   #10
Asmodeus
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat 9.0 (or 9.1...I can't remember :D)
Posts: 6

Rep: Reputation: 0
... I really should learn to stop jumping the gun eh? OK...I went to try to ./configure on the game I'm trying to install. Pardon the long post, but here's the results. Just to let you know, I *do* have PNG installed, not only that, but I went and actually D/L'ed PNG and RE-installed it to make sure... anyway, here's the results of my attempt to ./configure :

[root@Hades quadra-1.1.8]# ./configure
creating cache ./config.cache
checking how to run the C preprocessor... cc -E
checking for X... no
checking for c++... c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for compress in -lz... yes
checking for png_create_read_struct in -lpng... no
checking for vga_init in -lvga... no
checking for gl_setcontext in -lvgagl... no
checking for vga.h... no
checking for vgagl.h... no
checking for vgamouse.h... no
checking for vgakeyboard.h... no
checking for zlib.h... yes
checking for png.h... no
configure: error: libpng is required and could not be found!

Also, reading back through... anyone have a clue as to why it thinks I don't have X? I'm assuming that it's talking about the x-server (gui)?
 
Old 10-01-2003, 06:30 PM   #11
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
The madness of it all

I installed libpng from source but I take it your rpm ?

All I can think of is take a look at

/etc/ld.so.conf

and see if it has

/usr/local/lib

if it doesn't, add it then

ldconfig

maybe it's been put in that directory or some weird one
 
Old 10-01-2003, 07:21 PM   #12
Asmodeus
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat 9.0 (or 9.1...I can't remember :D)
Posts: 6

Rep: Reputation: 0
Well, I *do* know that it's IN there, and I did what you recommended (and I looked at the man pages for ldconfig ) and still get the same result... *scratches his head*
 
Old 10-01-2003, 07:23 PM   #13
Asmodeus
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat 9.0 (or 9.1...I can't remember :D)
Posts: 6

Rep: Reputation: 0
Oh yeah...

you were wondering if I did it from RPM or from source. Well, afaik, PNG is supposed to come with the RH9.0 install, and again afaik, it did, it says I've got the pnglib installed when I "locate" it, it's just that this program isn't picking it up...*continues scratching his head* could you tell me how this program (or any program for that matter) "knows" where/how to find the necessary libraries when it goes to compile something?
 
Old 10-01-2003, 11:25 PM   #14
starrcannon
LQ Newbie
 
Registered: Sep 2003
Location: Pacific Northwest
Distribution: Recompiled Redhat
Posts: 8

Rep: Reputation: 0
is this a RH9 only issue maybe?

I downloaded and installed from tarball pkg-config 0.12 and have the exact same problems as i had to start with, i also gained a new problem in the process, now <$pkg-config --list-all> command no longer works /shrug, beats the hell outta me. I was able to successfully compile my own kernel, so that said, i guess maybe its time for me to ditch the RH distro entirely and go with Gentoo or maybe even LFS.
I will keep checking back here, and it will probably take me a week or so to get somthing together before i even attepmt Gentoo or LFS, if pkg-config works well for me on one of those distro's i will post back my results.
GL and Talk to you all later,
Rob
 
Old 10-02-2003, 12:38 AM   #15
Asmodeus
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat 9.0 (or 9.1...I can't remember :D)
Posts: 6

Rep: Reputation: 0
Interesting thought and one of the minor irritations about *Nix that I've had so far is that what is "supported" on one dist isn't on another. YIM comes quickly to mind. It didn't work correctly (I got 2 point font on EVERYTHING) on Mandrake, but it works just fine w/RH... I just wanted to play a couple o' games lol.....anyway, I'll keep checking back.
 
  


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
Pkg_config_path rlnd Linux - Software 15 03-06-2009 02:26 PM
Problem in installating vcdimager because of PKG_CONFIG_PATH environmental variable! koodoo Linux - Newbie 3 08-22-2005 08:44 PM
Pkg_config_path Kiwi UK Linux - Software 5 12-18-2004 01:36 PM
Pkg_config_path box_l Mandriva 3 08-03-2004 04:53 AM
Pkg_config_path kilgore_trout Linux - Software 0 09-08-2003 12:18 PM

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

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