Skip to end of metadata
Go to start of metadata

Unfortunately, pkg-config does not come with OS X by default. Here are some notes on how to compile from source. It assumes that you have Xcode installed.

1) Download and extract

cd some-place-with-source-files
curl -O http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz
tar xfz pkg-config-0.28.tar.gz

2) Configure and Install

cd pkg-config-0.28
setenv CC /usr/bin/cc (for tcsh)
export CC=/usr/bin/cc (for bash)

2a) If you have super-user powers

./configure --prefix=/usr/local CC=$CC --with-internal-glib
make
sudo make install

2b) if not

./configure --prefix=$HOME/someplace/in/my/path CC=$CC --with-internal-glib 
make
make install

 

 

  • No labels