LinuxQuestions.org
Register a domain and help support LQ
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 09-14-2005, 09:26 AM   #1
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 532

Rep: Reputation: 30
I *just installed* glib but pango can't find it


I'm trying to install Pango/ATK/GTK+/Glib that I downloaded from gnu.org. It is in source format (tar.gz)

I installed Glib-2.4.0 and ATK-1.6.0 on my Mandrake 9.2 system with no problems.

Now i'm trying to do Pango 1.4.0 and I'm getting a ./configure error. It says I need to install Glib-2.4.0 or later, but I JUST DID. Why isn't it finding it?

An earlier version of Glib shipped with Mandrake 9.2. I also might have installed another older version from source. Could this be interfering with the Pango install?

Here is the error:

Code:
checking for GLIB - version >= 2.4.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occurred. This usually means GLIB is incorrectly installed.
configure: error:
*** Glib 2.4.0 or better is required. The latest version of 
*** Glib is always available from ftp://ftp.gtk.org/.
The only relevant line I could find in config.log is:
Code:
configure:21622: checking for GLIB - version >= 2.4.0
configure:21771: result: no
configure:21804: gcc -o conftest -g -02 -Wall conftest.c >&5
conftest.c:27:18: glib.h: No such file or directory
conftest.c: In function 'main':
conftest.c:33: error: 'glib_major_version' undeclared (first use in this function)
conftest.c:33: error: (Each undeclared identifier is reported only once
conftest.c:33: error: for each function it appears in.)
conftest.c:33: error: 'glib_minor_version' undeclared (first use in this function)
conftest.c:33: error: 'glib_micro_version' undeclared (first use in this function)
configure:21810: $? = 1
configure: failed program was:
| /* confdefs.h */ 
{ ... some C code ... }
Help, what can I do to convince Pango that glib really is installed?
 
Old 09-14-2005, 09:32 AM   #2
Zeistler
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 108

Rep: Reputation: 15
Did you do a ldconfig as root to update the linker cache?
 
Old 09-14-2005, 09:33 AM   #3
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 532

Original Poster
Rep: Reputation: 30
No, I didn't. I didn't know about that command.

But I just tried it and I'm still getting the error. Should I reboot?
 
Old 09-14-2005, 10:18 AM   #4
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
You could install these applications using rpm ?
 
Old 09-14-2005, 10:36 AM   #5
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 532

Original Poster
Rep: Reputation: 30
no. Mandrake 9.2 is a quite older version, and I can't seem to find compatible RPMs.
 
Old 09-14-2005, 01:07 PM   #6
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 532

Original Poster
Rep: Reputation: 30
*** SOLVED ***

Problem: the environment variable(s) that the configure script used weren't set. Thanks to this page

I did the following to solve it:

$ export PKG_CONFIG_PATH=/usr/local/lib/include

To double check:
$ echo $PKG_CONFIG_PATH

(then I got a message stating that it found 2 versions of GLIB:
"'pkg-config --modversion glib-2.0' returned 2.4.0, but GLIB (2.2.3) was found! If pkg-config was correct, then it is best to remove the old version of GLib."

Of course no instructions o how to do this.

If you get this error then do:

$ export LD_LIBRARY_PATH=/usr/local/lib

Now it works for me!!
 
  


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
pango 1.4.0 and glib.h errors thehundredthone Linux - Newbie 4 03-28-2006 11:25 PM
Pango not building - glib not installed correctly? headrift Linux - Newbie 1 09-14-2005 06:03 AM
Pango wants >=glib-2.4.0, I installed glib 2.4.7 and pango still says I need >=2.4.0 Locura Red Hat 5 11-01-2004 05:53 PM
Compiled en installed new Glib but Pango won't find it Haiyadragon Linux - Newbie 1 04-03-2004 08:08 AM
Pango-1.2.1 and GLib-2.2.1 Adam Shapiro Linux - Software 0 04-19-2003 12:52 PM


All times are GMT -5. The time now is 10:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration