How do I compile jzmq for ZeroMQ on OSX?

前端 未结 8 2182
一个人的身影
一个人的身影 2021-01-31 12:37

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

相关标签:
8条回答
  • With homebrew, the key is the warning message:

    ~/code/foss/java/jzmq$ brew install pkg-config                                                                                    
    ==> Downloading http://pkg-config.freedesktop.org/releases/pkg-config-0.25.tar.gz
    ==> ./configure --disable-debug --prefix=/usr/local/Cellar/pkg-config/0.25 --with-pc-path=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11/lib/pkgconfig
    ==> make install
    Warning: m4 macros were installed to "share/aclocal".
    Homebrew does not append "/usr/local/share/aclocal"
    to "/usr/share/aclocal/dirlist". If an autoconf script you use
    requires these m4 macros, you'll need to add this path manually.
    ==> Summary
    /usr/local/Cellar/pkg-config/0.25: 8 files, 232K, built in 19 seconds
    

    If you look at /usr/local/Cellar/pkg-config/0.25/share/aclocal/, you will see:

    $ ls /usr/local/Cellar/pkg-config/0.25/share/aclocal/                                                            
    pkg.m4
    

    You need to append /usr/local/Cellar/pkg-config/0.25/share/aclocal/ to /usr/share/aclocal/dirlist,like this:

    $ cat   /usr/share/aclocal/dirlist                                                                           
    /usr/local/share/aclocal
    /usr/local/Cellar/pkg-config/0.25/share/aclocal/
    

    And then re-run autogen and the other steps.

    0 讨论(0)
  • 2021-01-31 13:15

    For me, the problem was that I didn't have pkg-config installed.

    0 讨论(0)
提交回复
热议问题