[zeromq-dev] Problem Compiling Pyzmq

Min RK benjaminrk at gmail.com
Mon Jul 25 22:58:57 CEST 2011


To build python extensions, you need the Python headers with 'apt-get install python-dev'.

-MinRK

On Jul 25, 2011, at 13:36, Antonio Teixeira <eagle.antonio at gmail.com> wrote:

> Hello Guys/Gals.
> 
> I have tried to install pyzmq in ubuntu 11.04
> 
> Linux ubuntu 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011 i686 i686 i386 GNU/Linux
> 
> It fails With 
> 
> running build_ext
> building 'zmq.core.constants' extension
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Izmq/utils -Izmq/core -Izmq/devices -I/usr/include/python2.7 -c zmq/core/constants.c -o build/temp.linux-i686-2.7/zmq/core/constants.o -Wno-unused-function -Wno-strict-aliasing
> zmq/core/constants.c:4:20: fatal error: Python.h: Unknow File / Dir
> compilation terminated.
> error: command 'gcc' failed with exit status 1
> 
> 
> Installing Cython gave the same error that i was able to solve by using apt-get instead of easy_install.
> 
> 
> Best Regards
> A/T
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev



More information about the zeromq-dev mailing list