[zeromq-dev] Building on OS-X
Stephane Vales
vales at ingenuity.io
Sun Feb 12 09:31:20 CET 2023
I just created a fresh clone on an M1 mac mini with macos 13.2 and compilation worked immediately with autogen.sh/configure/make.
A few things to check :
Homebrew has to be installed in /opt/homebrew (legacy intel versions are in /usr/local and need to be removed first)
I have autoconf and automake installed via homebrew
I also have XCode 14.2 installed via the App Store and run at least once to install the Apple dev tools
libsodium shall be installed before compiling libzmq
As an alternative, you may try the following sequence using cmake (also installed via homebrew) :
git clone --depth 1 -b stable https://github.com/jedisct1/libsodium.git
cd libsodium
./autogen.sh && ./configure && make check
make -j8
sudo make install
cd ..
git clone https://github.com/zeromq/libzmq.git
cd libzmq
mkdir build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DWITH_LIBSODIUM=ON -DENABLE_DRAFTS=ON -DWITH_TLS=OFF -DCMAKE_OSX_DEPLOYMENT_TARGET=10.11
make -j8 -C build
> Le 12 févr. 2023 à 07:41, Robin Scher <robin at uberware.net> a écrit :
>
> I am trying to do a full build of lib from source on OS-X. I have to build a custom version and can’t just use Homebrew. I did this just fine for many years on Intel hardware through OS-X 10. I am trying to get it to work on M1 with OS-X 13.2, but the same build steps fail.
>
> 1. Fresh git clone
> 2. Run ./autogen.sh, which succeeds
> 3. Run ./configure which fails immediately with these error messages:
>
> ./configure: line 1: syntax error near unexpected token `('
> ./configure: line 1: `m4trace:aclocal.m4:15: -1- m4_include([acinclude.m4])’
>
> Does anyone know what the trick is here? Thanks for any input.
> -robin
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20230212/e3778135/attachment.htm>
More information about the zeromq-dev
mailing list