Python With ZeroMQ Again


</step00> prepare ...

sudo apt-get install libel autoconf automake uuid-dev


sudo apt-get install python-dev


</step01> 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 ...



</step02>  tar -xvf zeromq-* 



and After you Enter:




</step03>  cd /zeromq* 




</step04>  ./configure 


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



</step05>  make 

and you can take a break ....



</step06>  make install 




</step07> ldconfig


Normally ,You see nothing 


</step08> install pyzmq ..


A method: pip install  pyzmq 


B method: download pyzmq package ...

 

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


</step09> 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


</step10> Testing ....

 python -c "import zmq"


</step 11> done ...

Ref :
http://blog.csdn.net/u011767611/article/details/44596009
http://blog.chinaunix.net/uid-11640640-id-2139904.html


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值