[zeromq-dev] Build problems with trunk on OS X 10.5
Brian Granger
ellisonbg at gmail.com
Mon Feb 15 21:04:26 CET 2010
Martin,
> Ok. Can any of you who understand the problem put together a paragraph about
> it?
Yep.
Building 0MQ from the development trunk on a UNIX style OS (Linux, OS
X) requires that
pkg-config (http://pkg-config.freedesktop.org/wiki/) be installed. A
regular source build
of 0MQ does not require pkg-config. On Mac OS X, pkg-config
does not come with the system, so when you try to do ./configure
you may see errors like:
./configure: line 23913: syntax error near unexpected token `GLIB,'
./configure: line 23913: ` PKG_CHECK_MODULES(GLIB, glib-2.0 gthread-2.0)'
To resolve this, you need to install the latest pkg-config:
tar xzf pkg-config-0.23.tar.gz
cd pkg-config-0.23
./configure --prefix=/usr/local/pkg-config-0.23 --datarootdir=/usr/share
make
sudo make install
Then you will need to put /usr/local/pkg-config-0.23/bin on your
$PATH. It is important
to include the "--datarootdir=/usr/share" option, which will install
the pkg.m4 file in
/usr/share/aclocal, where aclocal will be able to find it.
Then you can build 0MQ:
cd zeromq2
./autogen.sh # must do this again after installing pkg-config
./configure # add other options here
make
sudo make install
This is more than one sentence, but explains the issue thoroughly.
Cheers,
Brian
> One sentence about the problem, on what systems it occurs and why.
>
> One sentence about the fix (can be the sentence above).
>
> I'll add it to build-from-the-source instructions then.
>
> Martin
>
--
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com
More information about the zeromq-dev
mailing list