Python With ZeroMQ Again


 

prepare ...

 

sudo apt-get install libel autoconf automake uuid-dev


sudo apt-get install python-dev


 

Download

I suggest you looking for the latest version:

>>> http://zeromq.org/intro:get-the-software

and Download it at your machine,and then

use scp tool cp it to your server ...

\

 

tar -xvf zeromq-*

\

 

and After you Enter:

 

\

 

cd /zeromq*

 

\

 

./configure

 

You can see ,there are a file name as 'Makefile' ...

\

 

make

and you can take a break ....

\

 

make install

 

\

 

ldconfig

 

Normally ,You see nothing

 

install pyzmq ..

 

A method: pip install pyzmq

 

B method: download pyzmq package ...

 

>>>https://github.com/zeromq/pyzmq/downloads/

 

we use B method ..

 

tar -zxvf pyzmq*

 

\

 

and then run :

 

 

python setup.py build_ext --rpath=/opt/zeromq-dev/lib --inplace



 

I got a error:

 

zmq/devices/monitoredqueue.c:8:22: fatal error: pyconfig.h: No such file or directory


fix it ..

apt-get install python-dev


Testing ....

python -c import zmq


done ...
 

评论关闭