Closed bgarcial closed 6 years ago
I tried this steps to install Boost Library http://www.boost.org/doc/libs/1_66_0/more/getting_started/unix-variants.html but does not works for me.
Then, with my apt-get package manager I install libboost-test-dev
and I can solve this situation in the make check
compilation step
λ bgarcial [~] → sudo apt-get install libboost-test-dev
[sudo] password for bgarcial:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libboost-test1.62-dev libboost-test1.62.0
The following NEW packages will be installed:
libboost-test-dev libboost-test1.62-dev libboost-test1.62.0
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 509 kB of archives.
After this operation, 5.407 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
I perform the make check
step and the output it's works!
λ bgarcial [workspace/zeromq-installers/zmqpp] at develop ✔
→ make check [818f9c3]
g++ -shared -rdynamic -Wl,-soname -Wl,libzmqpp.so.4 -o ./build/max-g++/libzmqpp.so.4 build/max-g++/obj/zmqpp/context.o build/max-g++/obj/zmqpp/zap_request.o build/max-g++/obj/zmqpp/socket.o build/max-g++/obj/zmqpp/message.o build/max-g++/obj/zmqpp/frame.o build/max-g++/obj/zmqpp/loop.o build/max-g++/obj/zmqpp/actor.o build/max-g++/obj/zmqpp/auth.o build/max-g++/obj/zmqpp/poller.o build/max-g++/obj/zmqpp/z85.o build/max-g++/obj/zmqpp/curve.o build/max-g++/obj/zmqpp/proxy.o build/max-g++/obj/zmqpp/proxy_steerable.o build/max-g++/obj/zmqpp/reactor.o build/max-g++/obj/zmqpp/signal.o build/max-g++/obj/zmqpp/zmqpp.o -lzmq
ar crf ./build/max-g++/libzmqpp.a build/max-g++/obj/zmqpp/context.o build/max-g++/obj/zmqpp/zap_request.o build/max-g++/obj/zmqpp/socket.o build/max-g++/obj/zmqpp/message.o build/max-g++/obj/zmqpp/frame.o build/max-g++/obj/zmqpp/loop.o build/max-g++/obj/zmqpp/actor.o build/max-g++/obj/zmqpp/auth.o build/max-g++/obj/zmqpp/poller.o build/max-g++/obj/zmqpp/z85.o build/max-g++/obj/zmqpp/curve.o build/max-g++/obj/zmqpp/proxy.o build/max-g++/obj/zmqpp/proxy_steerable.o build/max-g++/obj/zmqpp/reactor.o build/max-g++/obj/zmqpp/signal.o build/max-g++/obj/zmqpp/zmqpp.o
g++ -o ./build/max-g++/zmqpp-tests ./build/max-g++/obj/tests/test_inet.o ./build/max-g++/obj/tests/test_z85.o ./build/max-g++/obj/tests/test_context.o ./build/max-g++/obj/tests/test_message.o ./build/max-g++/obj/tests/test_auth.o ./build/max-g++/obj/tests/test_actor.o ./build/max-g++/obj/tests/test_load.o ./build/max-g++/obj/tests/test_proxy.o ./build/max-g++/obj/tests/test_loop.o ./build/max-g++/obj/tests/test_socket_options.o ./build/max-g++/obj/tests/test_socket.o ./build/max-g++/obj/tests/test_reactor.o ./build/max-g++/obj/tests/test_sanity.o ./build/max-g++/obj/tests/test_message_stream.o ./build/max-g++/obj/tests/test_poller.o -L./build/max-g++ -lzmqpp -lboost_unit_test_framework -lpthread -lzmq
running all test targets (test-actor test-auth test-context test-inet test-load test-loop test-message test-message_stream test-poll test-proxy test-reactor test-sanity test-socket test-socket_options test-z85)
LD_LIBRARY_PATH=./build/max-g++: ./build/max-g++/zmqpp-tests
Running 116 test cases...
auth: Starting ZAP Authentication Server
auth: verbose:true
auth: API command=DOMAIN
auth: domain=global
auth: API command=ALLOW
auth: whitelisting ipaddress=127.0.0.1
auth: API command=TERMINATE
auth: Shutdown ZAP Authentication Server
auth: Starting ZAP Authentication Server
auth: verbose:true
auth: API command=DOMAIN
auth: domain=*
auth: configure PLAIN - username:admin password:password
auth: API command=PLAIN
auth: configured PLAIN - user:admin
auth: API command=ALLOW
auth: whitelisting ipaddress=127.0.0.1
auth: ZAP request mechanism=PLAIN ipaddress=127.0.0.1
auth: passed (whitelist) address=127.0.0.1
auth: allowed (PLAIN) username=admin password=password
auth: ZAP reply status_code=200 status_text=OK user_id=admin
auth: API command=TERMINATE
auth: Shutdown ZAP Authentication Server
auth: Starting ZAP Authentication Server
auth: verbose:true
auth: API command=DOMAIN
auth: domain=*
auth: API command=ALLOW
auth: whitelisting ipaddress=127.0.0.1
auth: configure CURVE - client public key:CURVE_ALLOW_ANY
auth: API command=CURVE
auth: configured CURVE - allow ALL clients
Client Public Key :
Client Secret Key :
Server Public Key :
Server Secret Key :
auth: ZAP request mechanism=CURVE ipaddress=127.0.0.1
auth: passed (whitelist) address=127.0.0.1
auth: allowed (CURVE allow any client)
auth: ZAP reply status_code=200 status_text=OK user_id=AYq1emkd)0S?iy&1Y$yjkkYM6?3&n^f^#4Ms8&gE
auth: API command=TERMINATE
auth: Shutdown ZAP Authentication Server
auth: Starting ZAP Authentication Server
auth: verbose:true
auth: API command=DOMAIN
auth: domain=*
auth: API command=ALLOW
auth: whitelisting ipaddress=127.0.0.1
Client Public Key :
Client Secret Key :
Server Public Key :
Server Secret Key :
auth: configure CURVE - client public key:pkXhL(e0fKgUu)=sscv2)%yo2>2$r&F(Xe{O9G-q
auth: API command=CURVE
auth: configured CURVE - allow client with public key:pkXhL(e0fKgUu)=sscv2)%yo2>2$r&F(Xe{O9G-q
auth: ZAP request mechanism=CURVE ipaddress=127.0.0.1
auth: passed (whitelist) address=127.0.0.1
auth: allowed (CURVE) client_key=pkXhL(e0fKgUu)=sscv2)%yo2>2$r&F(Xe{O9G-q
auth: ZAP reply status_code=200 status_text=OK user_id=pkXhL(e0fKgUu)=sscv2)%yo2>2$r&F(Xe{O9G-q
auth: API command=TERMINATE
auth: Shutdown ZAP Authentication Server
Client Public Key :
Client Secret Key :
Server Public Key :
Server Secret Key :
auth: Starting ZAP Authentication Server
auth: verbose:true
auth: API command=DOMAIN
auth: domain=*
auth: API command=ALLOW
auth: whitelisting ipaddress=127.0.0.1
auth: configure CURVE - client public key:7@Dc7+pNcni)Z]RU-LgdhyZY.!&C6SxFiYpAw^C5
auth: API command=CURVE
auth: configured CURVE - allow client with public key:7@Dc7+pNcni)Z]RU-LgdhyZY.!&C6SxFiYpAw^C5
auth: ZAP request mechanism=CURVE ipaddress=127.0.0.1
auth: passed (whitelist) address=127.0.0.1
auth: allowed (CURVE) client_key=7@Dc7+pNcni)Z]RU-LgdhyZY.!&C6SxFiYpAw^C5
auth: ZAP reply status_code=200 status_text=OK user_id=7@Dc7+pNcni)Z]RU-LgdhyZY.!&C6SxFiYpAw^C5
auth: API command=TERMINATE
auth: Shutdown ZAP Authentication Server
*** No errors detected
λ bgarcial [workspace/zeromq-installers/zmqpp] at develop ✔
In the sudo make install
step
λ bgarcial [workspace/zeromq-installers/zmqpp] at develop ✔
→ sudo make install [818f9c3]
sed 's/^Version.*/Version: 4.2.0/g' ./src/libzmqpp.pc > ./build/max-g++/libzmqpp.pc
mkdir -p /usr/local/include/zmqpp
mkdir -p /usr/local/lib
mkdir -p /usr/local/lib/pkgconfig
install -m 644 ./src/zmqpp/zap_request.hpp ./src/zmqpp/curve.hpp ./src/zmqpp/socket.hpp ./src/zmqpp/proxy.hpp ./src/zmqpp/context.hpp ./src/zmqpp/byte_ordering.hpp ./src/zmqpp/compatibility.hpp ./src/zmqpp/proxy_steerable.hpp ./src/zmqpp/socket_types.hpp ./src/zmqpp/frame.hpp ./src/zmqpp/reactor.hpp ./src/zmqpp/loop.hpp ./src/zmqpp/inet.hpp ./src/zmqpp/socket_mechanisms.hpp ./src/zmqpp/auth.hpp ./src/zmqpp/poller.hpp ./src/zmqpp/z85.hpp ./src/zmqpp/message.hpp ./src/zmqpp/actor.hpp ./src/zmqpp/signal.hpp ./src/zmqpp/zmqpp.hpp ./src/zmqpp/context_options.hpp ./src/zmqpp/socket_options.hpp ./src/zmqpp/exception.hpp /usr/local/include/zmqpp
install -m 755 ./build/max-g++/libzmqpp.so.4 /usr/local/lib/libzmqpp.so.4.2.0
install -m 755 ./build/max-g++/libzmqpp.a /usr/local/lib/libzmqpp.a
install -m 755 ./build/max-g++/libzmqpp.pc /usr/local/lib/pkgconfig/libzmqpp.pc
ln -sf libzmqpp.so.4.2.0 /usr/local/lib/libzmqpp.so.4
ln -sf libzmqpp.so.4.2.0 /usr/local/lib/libzmqpp.so
if [ -f ./build/max-g++/zmqpp ]; then install -m 755 ./build/max-g++/zmqpp /usr/local/bin; fi
use make installcheck to test the install
λ bgarcial [workspace/zeromq-installers/zmqpp] at develop ✔
And the installation test
λ bgarcial [workspace/zeromq-installers/zmqpp] at develop ✔
→ make installcheck [818f9c3]
g++ -shared -rdynamic -Wl,-soname -Wl,libzmqpp.so.4 -o ./build/max-g++/libzmqpp.so.4 build/max-g++/obj/zmqpp/context.o build/max-g++/obj/zmqpp/zap_request.o build/max-g++/obj/zmqpp/socket.o build/max-g++/obj/zmqpp/message.o build/max-g++/obj/zmqpp/frame.o build/max-g++/obj/zmqpp/loop.o build/max-g++/obj/zmqpp/actor.o build/max-g++/obj/zmqpp/auth.o build/max-g++/obj/zmqpp/poller.o build/max-g++/obj/zmqpp/z85.o build/max-g++/obj/zmqpp/curve.o build/max-g++/obj/zmqpp/proxy.o build/max-g++/obj/zmqpp/proxy_steerable.o build/max-g++/obj/zmqpp/reactor.o build/max-g++/obj/zmqpp/signal.o build/max-g++/obj/zmqpp/zmqpp.o -lzmq
ar crf ./build/max-g++/libzmqpp.a build/max-g++/obj/zmqpp/context.o build/max-g++/obj/zmqpp/zap_request.o build/max-g++/obj/zmqpp/socket.o build/max-g++/obj/zmqpp/message.o build/max-g++/obj/zmqpp/frame.o build/max-g++/obj/zmqpp/loop.o build/max-g++/obj/zmqpp/actor.o build/max-g++/obj/zmqpp/auth.o build/max-g++/obj/zmqpp/poller.o build/max-g++/obj/zmqpp/z85.o build/max-g++/obj/zmqpp/curve.o build/max-g++/obj/zmqpp/proxy.o build/max-g++/obj/zmqpp/proxy_steerable.o build/max-g++/obj/zmqpp/reactor.o build/max-g++/obj/zmqpp/signal.o build/max-g++/obj/zmqpp/zmqpp.o
g++ -o ./build/max-g++/zmqpp-tests ./build/max-g++/obj/tests/test_inet.o ./build/max-g++/obj/tests/test_z85.o ./build/max-g++/obj/tests/test_context.o ./build/max-g++/obj/tests/test_message.o ./build/max-g++/obj/tests/test_auth.o ./build/max-g++/obj/tests/test_actor.o ./build/max-g++/obj/tests/test_load.o ./build/max-g++/obj/tests/test_proxy.o ./build/max-g++/obj/tests/test_loop.o ./build/max-g++/obj/tests/test_socket_options.o ./build/max-g++/obj/tests/test_socket.o ./build/max-g++/obj/tests/test_reactor.o ./build/max-g++/obj/tests/test_sanity.o ./build/max-g++/obj/tests/test_message_stream.o ./build/max-g++/obj/tests/test_poller.o -L./build/max-g++ -lzmqpp -lboost_unit_test_framework -lpthread -lzmq
./build/max-g++/zmqpp-tests
Running 116 test cases...
auth: Starting ZAP Authentication Server
auth: verbose:true
auth: API command=DOMAIN
auth: domain=global
auth: API command=ALLOW
auth: whitelisting ipaddress=127.0.0.1
auth: API command=TERMINATE
auth: Shutdown ZAP Authentication Server
auth: Starting ZAP Authentication Server
auth: verbose:true
auth: API command=DOMAIN
auth: domain=*
auth: configure PLAIN - username:admin password:password
auth: API command=PLAIN
auth: configured PLAIN - user:admin
auth: API command=ALLOW
auth: whitelisting ipaddress=127.0.0.1
auth: ZAP request mechanism=PLAIN ipaddress=127.0.0.1
auth: passed (whitelist) address=127.0.0.1
auth: allowed (PLAIN) username=admin password=password
auth: ZAP reply status_code=200 status_text=OK user_id=admin
auth: API command=TERMINATE
auth: Shutdown ZAP Authentication Server
auth: Starting ZAP Authentication Server
auth: verbose:true
auth: API command=DOMAIN
auth: domain=*
auth: API command=ALLOW
auth: whitelisting ipaddress=127.0.0.1
auth: configure CURVE - client public key:CURVE_ALLOW_ANY
auth: API command=CURVE
auth: configured CURVE - allow ALL clients
Client Public Key :
Client Secret Key :
Server Public Key :vv/d6^QE([[*)8s]Xgz0ls8o37YdLrxQIzUYK%]^
Server Secret Key :
auth: ZAP request mechanism=CURVE ipaddress=127.0.0.1
auth: passed (whitelist) address=127.0.0.1
auth: allowed (CURVE allow any client)
auth: ZAP reply status_code=200 status_text=OK user_id=aX&=UChu$GyA:e.4Lxz/L5u6wE2<oCYbtiB@-XIh
auth: API command=TERMINATE
auth: Shutdown ZAP Authentication Server
auth: Starting ZAP Authentication Server
auth: verbose:true
auth: API command=DOMAIN
auth: domain=*
auth: API command=ALLOW
auth: whitelisting ipaddress=127.0.0.1
Client Public Key :.
Client Secret Key :
Server Public Key :
Server Secret Key :
auth: configure CURVE - client public key:.
auth: API command=CURVE
auth: configured CURVE - allow client with public key:.
auth: ZAP request mechanism=CURVE ipaddress=127.0.0.1
auth: passed (whitelist) address=127.0.0.1
auth: allowed (CURVE) client_key=.
auth: ZAP reply status_code=200 status_text=OK user_id=.
auth: API command=TERMINATE
auth: Shutdown ZAP Authentication Server
Client Public Key :
Client Secret Key :
Server Public Key :do^&ZsC0Y!ETk0:r2I1-6LW4!d-rDRs?&=5@6c#K
Server Secret Key :
auth: Starting ZAP Authentication Server
auth: verbose:true
auth: API command=DOMAIN
auth: domain=*
auth: API command=ALLOW
auth: whitelisting ipaddress=127.0.0.1
auth: configure CURVE - client public key:
auth: API command=CURVE
auth: configured CURVE - allow client with public key:i-+ZK<#b/@AqyC#k(lAhXb^A}pZql.<JH%N}&Geb
auth: ZAP request mechanism=CURVE ipaddress=127.0.0.1
auth: passed (whitelist) address=127.0.0.1
auth: allowed (CURVE) client_key=i-+ZK<#b/@AqyC#k(lAhXb^A}pZql.<JH%N}&Geb
auth: ZAP reply status_code=200 status_text=OK user_id=i-+ZK<#b/@AqyC#k(lAhXb^A}pZql.<JH%N}&Geb
auth: API command=TERMINATE
auth: Shutdown ZAP Authentication Server
*** No errors detected
λ bgarcial [workspace/zeromq-installers/zmqpp] at develop ✔
→
I am trying install the C++ binding zmq In this README I am in the Install ZMQPP section and I type the
make check
command and I get the following output:How to can I add or install or setup the
-lboost_unit_test_framework
library ? .just in case that I am in right in my appreciation problem ...