[zeromq-dev] pyzmq installation error

Aurélien Vallée vallee.aurelien at gmail.com
Wed Apr 11 16:31:12 CEST 2012


Last sidenote:

Seems like you're on OSX, you can use the homebrew package manager to
install zmq for you  http://mxcl.github.com/homebrew/

$ brew install zmq

Easy ;-)

2012/4/11 Aurélien Vallée <vallee.aurelien at gmail.com>

> As a side note, seems like Brandon Rhodes created a "pyzmq-static"
> package, available on pypi, that will build and link zmq statically in its
> setup.py. This may be a cheap solution if you don't want to build zmq
> yourself.
> Check it out at  http://pypi.python.org/pypi/pyzmq-static/2.1.7.1
>
>
> 2012/4/11 Aurélien Vallée <vallee.aurelien at gmail.com>
>
>> Like most libraries, zmq uses autotools :-)
>> Latest stable release is 2.2
>>
>> wget -q http://download.zeromq.org/zeromq-2.2.0.tar.gz
>> tar xzf  zeromq-2.2.0.tar.gz
>> cd  zeromq-2.2.0
>> ./configure --prefix=/where/you/want/to/install/
>> make -j
>> make install
>>
>> On Wed, Apr 11, 2012 at 1:08 PM, Peng Yu <pengyu.ut at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I assume zmq is a non python library. I don't find with google how to
>>> install it. Would you please let me know how to install zmq first?
>>>
>>> 2012/4/11 Aurélien Vallée <vallee.aurelien at gmail.com>:
>>> > pyzmq needs to link against the zmq library, which should be provided
>>> to the
>>> > setup.py using the --zmq=/path/to/zmq argument.
>>> >
>>> > PS: use pip -> pip install pyzmq --install-option="--zmq=/path/to/zmq"
>>> >
>>> > On Wed, Apr 11, 2012 at 12:47 PM, Peng Yu <pengyu.ut at gmail.com> wrote:
>>> >>
>>> >> 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
>>> >> _______________________________________________
>>> >> zeromq-dev mailing list
>>> >> zeromq-dev at lists.zeromq.org
>>> >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > Aurélien Vallée
>>> > +33 6 47 41 70 37
>>> >
>>> > _______________________________________________
>>> > zeromq-dev mailing list
>>> > zeromq-dev at lists.zeromq.org
>>> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>> >
>>>
>>>
>>>
>>> --
>>> Regards,
>>> Peng
>>> _______________________________________________
>>> zeromq-dev mailing list
>>> zeromq-dev at lists.zeromq.org
>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>
>>
>>
>>
>> --
>> Aurélien Vallée
>> +33 6 47 41 70 37
>>
>
>
>
> --
> Aurélien Vallée
> +33 6 47 41 70 37
>



-- 
Aurélien Vallée
+33 6 47 41 70 37
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120411/9a1e86bf/attachment.htm>


More information about the zeromq-dev mailing list