Python With ZeroMQ Again

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.