LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-04-2006, 04:33 AM   #1
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Rep: Reputation: 16
problem when installing package


Hello,
I'm trying to install tar.gz package anjuta in Mandrake linux.
I'm following instructions but when I type ./configure it start process and report error:

cnfigure error Library requirements (glib 2.0 >= 2.4.0)not met.
It also suggest me to adjust PKG_CONFIG_PATH env. variable if I'm using libraries in nonstandard prefix (whatever that means). I'm using GNOME, how to fix problem, is there any way to install that glib?
 
Old 06-04-2006, 04:57 AM   #2
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
Hi

You didnīt say what distro you are using, but this error is telling you that your compiler library is too old (glibc). If you will post back what distro you are using we can instruct on how to install it.

Hope3 this helps

Bob
 
Old 06-04-2006, 05:23 AM   #3
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Original Poster
Rep: Reputation: 16
I'm using Mandrake 10.1 and I assume my glib is rtather old, so I'll try to download a newer one...
 
Old 06-04-2006, 07:27 AM   #4
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
I'm not sure which package manager mandrake uses, but I believe that distro is new enough to handle the newest glibc libarary. You will alleviate those errors when you compile with the newest glibc.

Bob
 
Old 06-04-2006, 07:45 AM   #5
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Original Poster
Rep: Reputation: 16
Ok, this is what I have done so far:
If I understood error message correctly I have glib 2.0 version and anjuta 2.0.1 software needs 2.4, so I have downloaded version of glib-2.4.5 in tar.gz format and I place tar.gz file in /home/asim directory.
I used tar xvfz glib-2.4.5.tar.gz to unpack,
then cd glib-2.4.5
and then ./configure and after that make
Everything went without errors. Of course, last step was: make install and after that I thougth that everything will be OK.
Now I enetr to anjuta-2.0.1 directory and again I type: ./configure but there is same error:

checking for pkg-config... /usr/bin/pkg-config
checking for pkg-config... /usr/bin/pkg-config
checking for glib-2.0 >= 2.4.0... Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found

configure: error: Library requirements (glib-2.0 >= 2.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
PKG_CONFIG_PATH="/home/asim/glib-2.4.5"
but problem stayed

I noticed that there is a file named glib-2.0.pc in /home/asim/glib-2.4.5 and tried to do this:

So my conclusion is:
I successfuly installed glib but in folder /home/asim/glib-2.4.5 so it didn't make links with pkg-config.

Now what should I do?
Maybe to repeat same procedure, but to place glib in tar file in /usr before start unpacking or...?

Can you give me advice what to do?

I didn't know this linux will become such a nightmare

Last edited by Micik; 06-04-2006 at 07:46 AM.
 
Old 06-05-2006, 12:46 PM   #6
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Original Poster
Rep: Reputation: 16
Ok guys, here's what I've done so far.
I have downloaded the latest glib package glib-2.10.3 in tar.gz archive.
I placed that archive in /home/asim directory and extracted, configured and instlled without any error messages. So I thought I could install anjuta-1.2.4a without any problems, but error about finding glib-2.0 is still there. I found that file glib-2.0.pc in /home/asim/glib-2.10.3 exactly where I have installed glib according to instructions. Contents of that file (glib-2.0.pc) is the following:

prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

glib_genmarshal=glib-genmarshal
gobject_query=gobject-query
glib_mkenums=glib-mkenums

Name: GLib
Description: C Utility Library
Version: 2.10.3
Libs: -L${libdir} -lglib-2.0
Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include

SO I guess my problem is that pkg-config somehow cannot find that lib file.
My question is how to set pkg-config look for glib-2.0.pc in /home/asim/glib-2.10.3 directory where it is now placed?
Please help if you cane since this is becoming very frustrating. It seems I'm not capable to install one ordinary software package.

Thanks
 
  


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
Problem installing this package James_dean Linux - Software 1 10-07-2005 03:08 PM
Problem re installing package satimis Linux From Scratch 5 09-29-2005 01:42 AM
problem while installing ipvsadm package--------- pal Linux - Newbie 3 01-05-2005 01:30 AM
Problem with installing package Pazabo Linux - Software 6 12-23-2004 07:17 AM
Problem installing PCMCIA package 3.1.25 RKris Linux - Hardware 1 06-16-2002 12:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:04 AM.

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