tonysimpson / nanomsg-python

nanomsg wrapper for python with multiple backends (CPython and ctypes) should support 2/3 and Pypy
MIT License
382 stars 85 forks source link

"python setup.py install" has error #58

Open zhuangchaoxi opened 7 years ago

zhuangchaoxi commented 7 years ago

_nanomsg_cpy/wrapper.c:4:24: fatal error: nanomsg/nn.h: No such file or directory

include <nanomsg/nn.h>

                    ^

compilation terminated.

=============================================================================== WARNING : CPython API extension could not be built.

Exception was : CompileError(DistutilsExecError("command 'gcc' failed with exit status 1",),)

If you need the extensions (they may be faster than alternative on some platforms) check you have a compiler configured with all the necessary headers and libraries.

zhuangchaoxi commented 7 years ago

My problem is solved: ln -s /usr/local/nanomsg/include/nanomsg/ /usr/include/nanomsg