How do I compile jzmq for ZeroMQ on OSX?

Joshua picture Joshua · Aug 19, 2010 · Viewed 18.8k times · Source

Trying to follow the directions from: http://github.com/zeromq/jzmq

I installed pkg-config using Homebrew and then I run the following commands: ./autogen.sh ./configure

The configure fails with:

checking how to hardcode library paths into programs... immediate
./configure: line 15263: syntax error near unexpected token `newline'
./configure: line 15263: `    PKG_CHECK_MODULES('

Answer

Beekhof picture Beekhof · Jul 4, 2011

A better solution is:

eval `brew --config | grep HOMEBREW_PREFIX | sed 's/: /=/'`
sudo bash -c 'echo '$HOMEBREW_PREFIX/share/aclocal' >> `aclocal --print-ac-dir`/dirlist'

This will allow the version of aclocal that ships with OSX to find any macros installed by homebrew packages.