省略jdk安装
安装zeromq
cd zeromq-2.1.7
./configure
#出现错误:configure: error: Unable to find a working C++ compiler
#需要安装g++编译器执行
sudo yum install gcc-c++
#出现错误:configure: error: cannot link with -luuid, install uuid-dev.
#需要安装软件包uuid-devel和libuuid-devel:
sudo yum install uuid-devel
sudo yum install libuuid-devel
安装jzmq
#出现错误:autogen.sh: error: could not find libtool. libtool is required to run autogen.sh.
#需要安装libtool
sudo yum install libtool
$ cd jzmq
$ ./autogen.sh
$ ./configure
$ make #在执行make的时候报make[1]: *** No rule to make target `classdist_noinst.stamp', needed by `org/zeromq/ZMQ.class'. Stop.
$ sudo make install
#解决错误
1)将目录切换至jzmq/src下
2)touch classdist_noinst.stamp
3)执行:
CLASSPATH=.:./.:$CLASSPATH javac -d . org/zeromq/ZMQ.java org/zeromq/ZMQException.java org/zeromq/ZMQQueue.java org/zeromq/ZMQForwarder.java org/zeromq/ZMQStreamer.java
4)
cd ..
./autogen.sh./configure
make
sudo make install
参考 [http://www.cnblogs.com/Richard-xie/p/4141286.html](http://www.cnblogs.com/Richard-xie/p/4141286.html)