[zeromq-dev] pyzmq installation error

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


Hi,

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
/var/folders/ok/okxjw3HGEsyvIrMaKBkHhE+++TI/-Tmp-/easy_install-coUJdn/pyzmq-2.1.11/egg-dist-tmp-4L0aZR
******************************************
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:
/var/folders/ok/okxjw3HGEsyvIrMaKBkHhE+++TI/-Tmp-//ccfIEp5K.out
error: command 'gcc-4.2' failed with exit status 1
Fatal:
    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

-- 
Regards,
Peng



More information about the zeromq-dev mailing list