ZeroMQ does not detect libsodium

I hope to get CurveCP functionality working in ZeroMQ ØMQ. I use CentOS as the base OS.

After downloading and starting ZeroMQ, I did the usual ./configure , make and sudo make install . Then running make check returned a lot of test passes, but stated:

  libsodium not installed, skipping CURVE test 

So sudo yum install libsodium and sudo ldconfig , then make clean and the above commands. But the next time I ran make check , the CURVE test was skipped, again reporting the absence of libsodium.

Looking at the tests, I see that test_security_curve.cpp has #ifndef HAVE_LIBSODIUM and that the definition of the preprocessor seems to lead to the omission of "no libsodium".

./configure --with-libsodium according to this page tells libsodium is not installed

./configure --with-libsodium=/home/eng/work/libsodium-master --with-libsodium-include-dir=/home/eng/work/libsodium-master/src/libsodium/include --with-libsodium-lib-dir=/usr/lib64 tells libsodium is not installed .

Decision

To get this working, installing libsodium via YUM did not provide a libsodium version for building zeromq. This required a real build of libsodium, which in turn required a recent copy of autoconf.

 curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz tar xzf autoconf-2.69.tar.gz cd autoconf-2.69 ./configure --prefix=/usr/local make sudo make install sudo ldconfig cd ../libsodium-master ./autogen.sh ./configure make sudo make install cd ../libzmq-master sudo ./configure --with-libsodium=/home/eng/work/libsodium-master --with-libsodium-include-dir=/home/eng/work/libsodium-master/src/libsodium/include --with-libsodium-lib-dir=/usr/lib64 sudo make make check sudo make install 
+7
zeromq libsodium
source share

No one has answered this question yet.

See similar questions:

3
Creating libzmq with libsodium

or similar:

647
ActiveMQ or RabbitMQ or ZeroMQ or
fifty
Why does zeromq not work on localhost?
nine
Build zeromq for iOS using libsodium, randombytes error
7
Install and compile ZeroMQ / ZMQ / 0MQ on Ubuntu 12.04 32bit
4
Problem installing zeormq for python
3
How to install pyzmq 2.1.10 for python2.6 on xp win32 window?
3
Creating libzmq with libsodium
0
Getting java.lang.UnsatisfiedLinkError error: no jzmq in java.library.path in IntelliJ ide with windows 10
0
zeroMQ: Unable to open libzmq.so.4
-2
Cannot install ZeroMQ / 0mq / ØMQ correctly

All Articles