Closed saltycrane closed 1 year ago
Using pip is recommended.
Not sure why easy_install fails, do you think it called configure for the rabbitmq-c lib? Cannot see evidence of this in the log
Same problem here on Centos 6.3.
Solution: rm -rf librabbitmq-1.0.1 tar -xvzf librabbitmq-1.0.1.tar.gz cd librabbitmq-1.0.1 python ./setup.py build su python ./setup.py install
If you try to go straight to install without first building it will fail with the "VERSION undeclared" error. I had to delete and start clean at that point. A build as the non-root user would also fail after at
Same problem for me, but without permissions issues. (This is 1.0.3)
If I run python ./setup.py install
, I get the 'VERSION' undeclared issue.
If I run python ./setup.py build install
it works fine.
Also clean
, doesn't appear to remove the important files. If I run a build
once, I can run clean
and install
all I want and it works fine. This file seems to be the important one: build/lib.linux-x86_64-2.7/_librabbitmq.so
It never gets cleaned.
thanks this was helpful.
sudo pip install librabbitmq==1.0.3 running install running bdist_egg running egg_info writing librabbitmq.egg-info/PKG-INFO writing top-level names to librabbitmq.egg-info/top_level.txt writing dependency_links to librabbitmq.egg-info/dependencylinks.txt reading manifest file 'librabbitmq.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '' under directory 'tests' no previously-included directories found matching '.pyc' no previously-included directories found matching '.o' no previously-included directories found matching '.la' no previously-included directories found matching '.so' no previously-included directories found matching '_.dylib' writing manifest file 'librabbitmq.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.10-x86_64/egg running install_lib running build_py running build_ext building '_librabbitmq' extension clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c Modules/_librabbitmq/connection.c -o build/temp.macosx-10.10-x86_64-2.7/Modules/_librabbitmq/connection.o clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/amqp_api.c -o build/temp.macosx-10.10-x86_64-2.7/clib/librabbitmq/amqp_api.o In file included from clib/librabbitmq/amqp_api.c:37: clib/librabbitmq/amqp_private.h:258:1: error: expected ')' DECLARE_XTOXLL(hton) ^ clib/librabbitmq/amqp_private.h:226:23: note: expanded from macro 'DECLARE_XTOXLL' _AMQP_INLINE uint64_t func##ll(uint64_t val) \ ^
Using pip to install librabbitmq succeeds, but using easy_install or "python setup.py install", fails. My OS is Ubuntu 12.04. I had similar results on Scientific Linux 6.
pip succeeds
python setup.py install fails
easy_install fails