[zeromq-dev] Build issue for Java binding on mac osx 10.5

Brian Granger ellisonbg at gmail.com
Wed Apr 28 19:55:41 CEST 2010


I don't think this is an issue with the autotools version.  I think it
is the issue with pkg-config that I saw.  Here is a summary of the

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
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
sudo make install

This text used to be on the 0MQ website in the build instructions
somewhere, but I can't find it anymore.  Am I missing it?



On Tue, Apr 27, 2010 at 11:06 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:
> Anand,
> It's caused by old version of autotools on your system.
> Try using packaged 2.0.6 version rather than trunk.
> Martin
> anand krishnamurthy wrote:
>> Hi,
>> I tried the build for the java binding on mac osx 10.5. I did the
>> following steps:
>> 1. Installed zeromq main module and compiled/installed it. Tested the
>> c++ binding. It works
>> 2. Then installed the java binding from http://github.com/sustrik/jzmq.
>> and executed the following:
>> 2.a autogen.sh
>> 2.b configure  (now here I get an error saying -->
>> ....
>> ......
>> checking dependency style of g++... (cached) gcc3
>> ./configure: line 20019: syntax error near unexpected token `newline'
>> ./configure: line 20019: `    PKG_CHECK_MODULES('
>> Any pointers on this would be helpful.
>> thanks
>> Andy
>> ------------------------------------------------------------------------
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

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