Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Trying to install glib 2.3.1....failing on ./configure

Trying to install glib 2.3.1....failing on ./configure
Thread Tools
Baninated
Join Date: Jun 2000
Location: Cambridge, Chicago, Jerusalem (school/home/heart)
Status: Offline
Reply With Quote
Nov 26, 2004, 03:23 PM
 
In my attempt to install irssi (irc client), the ./configure told me I needed glib installed. After download I run ./configure which says:

configure: error: *** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/


I download pkg-config's source code and do ./configure, make, make install which seems to run perfectly and with no errors of any sort. When I go back to glib and to ./configure I get the same error message. The README of pkgconfig doesn't have anything specific in it and I am utterly confused as to why glib isn't seeing pkgconfig. I am sincerely looking forward to anyone's suggestion, solution or ideas.
     
Junior Member
Join Date: Nov 2004
Location: Michigan
Status: Offline
Reply With Quote
Nov 27, 2004, 10:55 AM
 
Did you edit your shell path to include pkg-config? By default pkg-config is installed to /usr/local/bin. You can add the path to /etc/profile by doing: PATH="$PATH:/usr/local/bin" after the first PATH line. Then just open a new terminal to get the changes.
     
Junior Member
Join Date: Nov 2004
Location: Michigan
Status: Offline
Reply With Quote
Nov 27, 2004, 10:57 AM
 
Or, an easier way if you have fink installed would be `fink install irssi`
     
bstone  (op)
Baninated
Join Date: Jun 2000
Location: Cambridge, Chicago, Jerusalem (school/home/heart)
Status: Offline
Reply With Quote
Nov 27, 2004, 06:20 PM
 
I don't want to use fink as I want to do this myself. Relying on package programs or pre-compile scripts isn't my idea of learning Unix. I tried your suggestion, but it still presents me with:

configure: error: *** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/


Here is a copy of my /etc/profile:

# System-wide .profile for sh(1)

PATH="/bin:/sbin:/usr/bin:/usr/sbin:"
PATH="$PATH:/usr/local/bin"
export PATH

[ -r /etc/bashrc ] && source /etc/bashrc


I am miffed!
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Nov 27, 2004, 06:42 PM
 
Originally posted by bstone:
I don't want to use fink as I want to do this myself. Relying on package programs or pre-compile scripts isn't my idea of learning Unix. I tried your suggestion, but it still presents me with:

configure: error: *** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/
Have it your way.

irssi is a tough install from source on Mac OS X, I've done it a few times, but it's got a lot of problems. There are a lot of dependencies that need satisfying and it gets pretty ugly sometimes.

What happens if you type "pkg-config"? If you get any output at all besides "command not found," then you should type "which pkg-config" to see where your pkg-config install lives. I just had a look at my pkg-config install and it comes from fink, but I compiled the irssi myself:
Code:
[aorth@nacho: ~]$ which pkg-config /sw/bin/pkg-config [aorth@nacho: ~]$ which irssi /usr/local/bin/irssi
Note that pkg-config lives in /sw (fink installs everything it compiles in /sw). There's nothing wrong with package management systems. I guess you don't feel as hardcore and you miss out on some cool little tips about the filesystem and how the shell works, but nobody should have to deal with dependency problems or poking around in makefiles and source files (unless they want to).

But yeah, check out and see if you can run pkg-config. If you can't run it, neither can glib's configure script.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
bstone  (op)
Baninated
Join Date: Jun 2000
Location: Cambridge, Chicago, Jerusalem (school/home/heart)
Status: Offline
Reply With Quote
Nov 27, 2004, 06:47 PM
 
Thanks for the tip.

root# which pkg-config
pkg-config: Command not found.

So yeah, it can't find it.

Yet, notice the following:

root# ls /usr/local/bin/pkg-config
/usr/local/bin/pkg-config

So I am, as you might say, mildly confused. I have fink on the machine and all and would normally do that, but I am trying to get more Unixy and understand what's going on behind the scenes.
     
bstone  (op)
Baninated
Join Date: Jun 2000
Location: Cambridge, Chicago, Jerusalem (school/home/heart)
Status: Offline
Reply With Quote
Nov 27, 2004, 08:38 PM
 
I moved pkg-config from /usr/local/bin to /usr/bin and now it finds it. Hurray! Next problem....

configure: error: *** pkg-config too old; version 0.14 or better required.


Um, I don't think so, considering I compiled ver 0.3.0. Ideas?
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Nov 28, 2004, 12:06 AM
 
Hmmm:
Code:
[aorth@nacho: ~]$ pkg-config --version 0.15.0
If you compiled version 0.3.0 I think that's older than 0.14.0, some developers adapt strange numbering schemes for their releases. Try grabbing something that looks newer maybe.
(Last edited by [APi]TheMan; Nov 28, 2004 at 12:16 AM. )
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
bstone  (op)
Baninated
Join Date: Jun 2000
Location: Cambridge, Chicago, Jerusalem (school/home/heart)
Status: Offline
Reply With Quote
Nov 28, 2004, 04:31 AM
 
Silly me downloaded and compiled ver 0.3.0, and I thought it said 0.30. I got the 0.15 and am currently compiling that. Heheheheh.....
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Nov 28, 2004, 12:07 PM
 
Originally posted by bstone:
Silly me downloaded and compiled ver 0.3.0, and I thought it said 0.30. I got the 0.15 and am currently compiling that. Heheheheh.....
See, you're already getting better at this.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Nov 28, 2004, 04:18 PM
 
Originally posted by ctlq:
Did you edit your shell path to include pkg-config? By default pkg-config is installed to /usr/local/bin. You can add the path to /etc/profile by doing: PATH="$PATH:/usr/local/bin" after the first PATH line. Then just open a new terminal to get the changes.
Better make that last line PATH="${PATH}:/usr/local/bin". I think this is why bstone had to move th ebinary to get it to work.
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:02 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2