Problem installing zeormq for python

I'm new to unix, so I'm sorry if I post anything simple. I must also admit that I am not coping with the whole process.

I need to install zeromq on my ubuntu.

I have python 2.6.6 installed

I followed the instructions on the UNIX systems website: http://www.zeromq.org/intro:get-the-software and after http://www.zeromq.org/bindings:python .

Exactly I did:

  • Install libtool, autoconf, automake and uuid-dev
  • Stable Version Download
  • sudo./configure, sudo make, sudo make install and sudo ldconfig

(At this moment I am not getting any errors)

But when I type: sudo easy_install pyzmq I get an error:

zmq / core / constants.c: 4: fatal error: Python.h: No such file or directory compilation completed. Error: 'gcc' command failed with exit status 1

I get the same error if I try to install manually.

I do not know what to do at this moment, and I can not find someone who has the same problem.

I thank you for your help.

+4
source share
1 answer

All the error you gave us suggests that gcc failed. Most likely, gcc also gave you a long error message saying why this failed. This is more useful.

If I'm going to guess, some development headers are missing. Maybe Python development headers you can set with

sudo apt-get install python-dev 

But for sure that this is wrong, you can only answer when you give the corresponding error message (which in C / C ++ is annoyingly included in the beginning or the error message).

+12
source

Source: https://habr.com/ru/post/1333984/


All Articles