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
zeromq libsodium
Chrisky
source share