[zeromq-dev] pyzmq installation error

Peng Yu pengyu.ut at gmail.com
Wed Apr 11 14:47:51 CEST 2012


I try to install pyzmq on Mac OS X. But I got the following error.
Could anybody let me know what to do to fix this error? Thanks!

~/Downloads$ easy_install pyzmq
Searching for pyzmq
Reading http://pypi.python.org/simple/pyzmq/
Reading http://github.com/zeromq/pyzmq
Reading http://github.com/zeromq/pyzmq/downloads
Best match: pyzmq 2.1.11
Downloading https://github.com/downloads/zeromq/pyzmq/pyzmq-2.1.11.zip
Processing pyzmq-2.1.11.zip
Running pyzmq-2.1.11/setup.py -q bdist_egg --dist-dir
Configure: Autodetecting ZMQ settings...
    Custom ZMQ dir:       None
detect/vers.c:3:17: error: zmq.h: No such file or directory
detect/vers.c:3:17: error: zmq.h: No such file or directory
lipo: can't figure out the architecture type of:
error: command 'gcc-4.2' failed with exit status 1
    Failed to compile ZMQ test program.  Please check to make sure:

    * You have a C compiler installed
    * A development version of Python is installed (including header files)
    * A development version of ZMQ >= 2.1.4 is installed (including
header files)
    * If ZMQ is not in a default location, supply the argument --zmq=<path>
    * If you did recently install ZMQ to a default location,
      try rebuilding the ld cache with `sudo ldconfig`
      or specify zmq's location with `--zmq=/usr/local`

error: Setup script exited with 1


More information about the zeromq-dev mailing list