安装相关库:
sudo apt-get install libtool autoconf automake uuid-dev
编译zeromq
下载链接:
#wget http://download.zeromq.org/zeromq-3.2.0-rc1.tar.gz
移除旧版本
sudo make uninstall
wget http://download.zeromq.org/zeromq-2.2.0.tar.gz
./configure
make
sudo make install
sudo ldconfig
编译CZMQ
CZMQ - High-level C Binding for ØMQ
wget http://download.zeromq.org/czmq-1.2.0.tar.gz
编译pyzmq
sudo apt-get install python-dev
wget https://github.com/downloads/zeromq/pyzmq/pyzmq-2.2.0.tar.gz
python setup.py configure --zmq=/usr/local
python setup.py install
zeromq的hello world?
python examples https://github.com/imatix/zguide/tree/master/examples/Python
python /home/fengyun/zeromq/zguide/examples/Python/hwserver.py
python /home/fengyun/zeromq/zguide/examples/Python/hwclient.py