LinuxQuestions.org
Visit Jeremy's Blog.
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 03-29-2005, 11:12 AM   #1
R++
LQ Newbie
 
Registered: Jan 2004
Posts: 10

Rep: Reputation: 0
problems installing glib :(


hello
i'm on red hat 9, i'm trying to install gtk, it needs glib, atk and pango installed, so i installed glib and everything seems to be fine, but when i try to install atk i get this error:

checking for GLIB - version >= 2.5.7... 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 occured. This usually means GLIB is incorrectly installed.
configure: error:
*** GLIB 2.5.7 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.

my glib version is 2.6.3

any ideas? i'm newbie to linux and don't know what to do, i'd like to try changing that environment variable but i don't know how.

hope you can help me, thanks
 
Old 03-29-2005, 12:44 PM   #2
sn9ke_eyes
Member
 
Registered: Feb 2003
Location: Texas
Distribution: slackware 11
Posts: 90

Rep: Reputation: 15
what's in /usr/lib/pkgconfig for glib ?

ls -al /usr/lib/pkgconfig/gl*
 
Old 03-29-2005, 12:58 PM   #3
sludink
Member
 
Registered: Jan 2005
Location: Brabant, the Netherlands
Distribution: Gentoo 2004.x (2.6.10 hardened)
Posts: 91

Rep: Reputation: 15
Possible solution?

Try this:
-Become root;
at the (shell)prompt, type:

# echo $(echo "export PKG_CONFIG_PATH="$(find / -iname "glib-2.0.pc" -printf %h"\n")) >> /etc/profile
# source /etc/profile

Then, try:
# tail -n 1 /etc/profile

If it shows noting (just empty space) after PKG_CONFIG_PATH=, there's no glibc-2.0.pc on your computer, and you should try to get that file.
If it shows some path
(for example:
PKG_CONFIG_PATH=/usr/lib )
try to emerge atk again.

Hope it helps.
 
Old 03-29-2005, 01:50 PM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

if you did ./configure, make, make install ^ is what you need. note that if you still have the glib-2.x your system came with installed you will have runtime linker problems due to incorrect installation.
 
  


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
[GLIB] Problems Installing GLIB ThA_eLMo_GoD Linux - Newbie 2 09-04-2004 05:27 PM
problems installing glib cheema Linux - Newbie 5 04-24-2004 06:13 AM
Problems installing glib-2.2.0 ooagentbender Linux - Software 1 12-29-2003 03:21 AM
Problems installing GLib 2.0.4 Fred Affe Linux - Newbie 4 08-17-2003 05:17 AM
Installing glib 1.2.6 problems dgdgedd Linux - General 1 03-31-2003 02:49 PM

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

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