In the ubuntu 12.04 server version
check system:
uname -a
</step01>
sudo apt-get update
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
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