Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build on Linux #12

Closed
dieu opened this issue Sep 6, 2010 · 2 comments
Closed

Build on Linux #12

dieu opened this issue Sep 6, 2010 · 2 comments

Comments

@dieu
Copy link

dieu commented Sep 6, 2010

sudo 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.0.7
Downloading http://github.com/downloads/zeromq/pyzmq/pyzmq-2.0.7.zip
Processing pyzmq-2.0.7.zip
Running pyzmq-2.0.7/setup.py -q bdist_egg --dist-dir /tmp/easy_install-KO2F57/pyzmq-2.0.7/egg-dist-tmp-QzSWP7
zmq/_zmq.c: In function ‘init_zmq’:
zmq/_zmq.c:10583: error: ‘EMTHREAD’ undeclared (first use in this function)
zmq/_zmq.c:10583: error: (Each undeclared identifier is reported only once
zmq/_zmq.c:10583: error: for each function it appears in.)
error: Setup script exited with error: command 'gcc' failed with exit status 1

or

python setup.py build_ext --rpath=/opt/zeromq-2.0.8/lib/ --inplace
running build_ext
building 'zmq._zmq' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c zmq/_zmq.c -o build/temp.linux-x86_64-2.6/zmq/_zmq.o
zmq/_zmq.c: In function ‘init_zmq’:
zmq/_zmq.c:11185: error: ‘EMTHREAD’ undeclared (first use in this function)
zmq/_zmq.c:11185: error: (Each undeclared identifier is reported only once
zmq/_zmq.c:11185: error: for each function it appears in.)
error: command 'gcc' failed with exit status 1

Zeromq install 2.0.7, 2.0.8, 2.0.9 from http://github.com/zeromq/zeromq2
OS: Ubuntu 9.10

@dieu
Copy link
Author

dieu commented Sep 6, 2010

Not correctly handles parameter build_ext - rpath = / opt/zeromq-2.0.8/lib / - inplace. Anyway, looking for libraries in the default path. Does not work with version zeromq 2.0.9 (it was from the outset in default path). With 2.0.8 build successfully.

@ellisonbg
Copy link
Contributor

A couple of issues:

  • It looks like you are not using the stable 2.0.7 release of zeromq.
    It looks like you are using a dev branch or something. That is the
    EMTHREAD stuff.
  • pyzmq can't be easy installed like this. You will need to grab the
    tarball/zip and edit the setup.cfg file to point to your zeromq
    install.

Cheers,

Brian

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants