sudo apt-get install autoconf automake libtool gcc gcc- g++ make libuuid-dev/uuid-dev git
//安装所需的条件
如果出现no jzmq in java.library.path看这里: http://blog.csdn.net/larrylgq/article/details/7515362
下载安装zeromq
http://download.zeromq.org/zeromq-2.1.10.tar.gz
$ cd zeromq-2.1.10
$ ./configure --with-pgm
$ make
$ sudo make install
下载安装jzmq
$ git clone https://github.com/zeromq/jzmq.git
$ cd jzmq
$ ./autogen.sh
$ ./configure
$ touch
src/classdist_noinst.stamp
配置环境变量$ cd src/org/zeromq/$ javac *.java$ cd ~/jzmq$ make $ sudo make install
sudo bash
echo /usr/local/lib > /etc/ld.so.conf.d/local.conf
ldconfig
echo CLASSPATH=/usr/local/share/java/zmq.jar:. >> /etc/environment
echo export LD_LIBRARY_PATH=/usr/local/lib > /etc/profile.d/ldlibrarypath.sh
exit