LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-23-2010, 02:30 AM   #1
mstdmstd
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Rep: Reputation: 0
compiling glib PKG_CONFIG_PATH environment error


Hi, all.
In my CentOS5.4 I need to install gtk+-2.12.2, it demands glib-2.22.3, and system has only glib-2.13.5

I download and install glib-2.22.3 with command ./configure --prefix=/opt/glib-2.22.3 && make && make install

Downloaded gtk+-2.12.2 and compiling like ./configure --prefix=/opt/gtk+-2.12.2 --with-glib=/opt/glib-2.22.3
gives error:
Requested 'glib-2.0 >= 2.13.5' but version of GLib is 2.12.3
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.


I made $ export PKG_CONFIG_PATH=/opt/glib-2.22.3/bin:$PKG_CONFIG_PATH
And please specify if here I have to write /opt/glib-2.22.3/bin or /opt/glib-2.22.3?

and echo $PKG_CONFIG_PATH - I see my lib in $PKG_CONFIG_PATH

But still the same error. What is the problem and how to fix it ?
 
Old 02-23-2010, 03:01 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

From the configure options you used to build glib2, the correct PKG_CONFIG_PATH is:
Code:
export PKG_CONFIG_PATH=/opt/glib-2.22.3/lib/pkgconfig:$PKG_CONFIG_PATH
Regards

Last edited by bathory; 02-23-2010 at 03:03 AM.
 
Old 02-23-2010, 03:44 AM   #3
mstdmstd
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks, it helped.
 
  


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
2 glib-2.0 versions installed, PKG_CONFIG_PATH Munksgaard Linux - Software 1 06-28-2006 09:09 AM
PKG_CONFIG_PATH environment Micro420 Linux - Software 3 12-17-2004 07:57 PM
glib and sdk environment var error MaddDog696 Linux - Software 5 05-04-2004 09:40 AM
Where is the PKG_CONFIG_PATH environment variable? jdruin Linux - Software 4 12-05-2003 08:31 PM
PKG_CONFIG_PATH environment variable hyperriven Linux - Software 2 10-24-2003 08:29 PM

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

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