[ZEROMQ] ZEROMQ+JZMQ installation under Unix

Source: Internet
Author: User

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/image-text/install/2015/1012/6281.html


2. JZMQ Installation

Download: HTTPS://GITHUB.COM/ZEROMQ/JZMQ

(1) Copy the 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/image-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

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7F/66/wKiom1cdhbTSr45zAAAhwhEhfcs747.png "title=" Zeromq-1 "alt=" Wkiom1cdhbtsr45zaaahwhehfcs747.png "/>


Reference documents:

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

This article is from the "Programming Art" blog, so be sure to keep this source http://itsart.blog.51cto.com/1005243/1767433

[ZEROMQ] zeromq+jzmq installation under UNIX

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.