 |
 |
Trying to install glib 2.3.1....failing on ./configure
|
 |
|
 |
|
Baninated
Join Date: Jun 2000
Location: Cambridge, Chicago, Jerusalem (school/home/heart)
Status:
Offline
|
|
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
|
|
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
|
|
Or, an easier way if you have fink installed would be `fink install irssi`
|
|
|
| |
|
|
|
 |
|
 |
|
Baninated
Join Date: Jun 2000
Location: Cambridge, Chicago, Jerusalem (school/home/heart)
Status:
Offline
|
|
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
|
|
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"
|
| |
|
|
|
 |
|
 |
|
Baninated
Join Date: Jun 2000
Location: Cambridge, Chicago, Jerusalem (school/home/heart)
Status:
Offline
|
|
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.
|
|
|
| |
|
|
|
 |
|
 |
|
Baninated
Join Date: Jun 2000
Location: Cambridge, Chicago, Jerusalem (school/home/heart)
Status:
Offline
|
|
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
|
|
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"
|
| |
|
|
|
 |
|
 |
|
Baninated
Join Date: Jun 2000
Location: Cambridge, Chicago, Jerusalem (school/home/heart)
Status:
Offline
|
|
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
|
|
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"
|
| |
|
|
|
 |
|
 |
|
Moderator 
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status:
Offline
|
|
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.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|