Get the App
SLTechnology News&Howtos  ›  Servers  › 

[zeromq] installation of zeromq+jzmq under unix

Shulou Source: shulou.com Published: 2022-06-03 08:48:54 12月06日 Update

Centos 6.5 environment

1. Zeromq version 3.2.5

Reference: http://zeromq.org/area:download#toc1

$wget http://download.zeromq.org/zeromq-3.2.5.tar.gz

$tar zxvf zeromq-3.2.5.tar.gz

$cd zeromq-3.2.5

$. / configure

$make

$make install

Error:

(1) unbale to find a working C++ compiler

Yum install gcc gcc-c++ kernel-devel

Reference: http://www.centoscn.com/p_w_picpath-text/install/2015/1012/6281.html

2. Jzmq installation

Download: https://github.com/zeromq/jzmq

(1) copy jzmq-master.zip to the zeromq directory.

Unzip jzmq-master.zip

(2)

Cd jzmq-jni/

. / autogen.sh

. / configure

Make

Make install

Cd..

Mvn package

Error:

(1) could not find libtool

Sudo yum install libtool

3. Install JDK1.7 under CentOS

Reference: http://www.centoscn.com/p_w_picpath-text/install/2014/0827/3585.html

4. / etc/profile file configuration

Export JAVA_HOME=/usr/local/java/jdk1.7.0_79

Export JRE_HOME=/usr/local/java/jdk1.7.0_79/jre

Export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:/usr/local/share/java/zmq.jar:$JRE_HOME/lib:$CLASSPATH

Export PATH=$JAVA_HOME/bin:$PATH

Export LD_LIBRARY_PATH=/usr/local/lib

Test:

Java-Djava.library.path=/usr/local/lib-cp.: / usr/local/share/java/zmq.jar:/usr/local/share/perf/zmq-perf.jar local_lat tcp://192.168.2.200:5555 1 100

Java-Djava.library.path=/usr/local/lib-cp.: / usr/local/share/java/zmq.jar:/usr/local/share/perf/zmq-perf.jar remote_lat tcp://192.168.2.200:5555 1 100

References:

Http://shiyanjun.cn/archives/241.html "Storm installation and configuration in CentOS 6.4stand-alone environment"

Tags: References environments errors configurations stand-alone references copies files documents versions catalogs caches tests Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Microsoft Docker Xiaomi OPPO Reno