Install Zeromq

In the ubuntu 12.04 server version 

check system:

uname -a


</step01>

sudo apt-get update


</step02>

check latest version of zeromq:

please visit: http://zeromq.org/area:download



</step03>

wget http://download.zeromq.org/zeromq-4.0.5.tar.gz

You will see:



</step04>


apt-get install libtool autoconf automake

You are maybe see those:



</step05>

apt-get install uuid-dev g++


You are maybe see those:



</step06>

apt-get install python-dev

 You are maybe see those:



</step07>


check your download target:



</step08>

unpack package:

tar -zxvf zeromq-4.0.5.tar.gz 

You will see those:



</step09>


easy_install pyzmq



but ..I got a bug here:




when I run the line of code below:

It's show me I have a error:



</step10>

 rm /var/lib/apt/lists/* -vf

apt-get update


run </step04> again:

I got those tips:



Okay,I don'y care it ..keep going ..


run</step05>

run</step06>

run</step09>

</step11>


./configure

make

make install

ldconfig


</step12>

pip install pyzmq
or

easy_install pip


error: Setup script exited with error: command 'gcc' failed with exit status 1


I gotta fix this error:

so i run:

apt-get install python-dev
but i got another error again:




so fix it is first ..

apt-get --fix-broken install
apt-get install python-dev

You will see those:



</step13>

easy_install pyzmq


You will see those:


</step14>

Testing:

python -c "import zmq"

You will see those:


Ref:

http://www.cnblogs.com/xiazh/archive/2012/07/31/2616474.html

http://blog.sina.com.cn/s/blog_4980828b0100zicn.html

http://zeromq.org/area:download

http://www.linuxidc.com/Linux/2011-07/38496.htm


  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值