Comments (5)
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
from librabbitmq.
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
from librabbitmq.
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.
from librabbitmq.
thanks this was helpful.
from librabbitmq.
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/dependency_links.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)
^
:180:1: note: expanded from here
htonll
^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x) __DARWIN_OSSwapInt64(x)
^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
^
clib/librabbitmq/amqp_private.h:258:1: note: to match this '('
clib/librabbitmq/amqp_private.h:226:23: note: expanded from macro 'DECLARE_XTOXLL'
_AMQP_INLINE uint64_t func##ll(uint64_t val)
^
:180:1: note: expanded from here
htonll
^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x) __DARWIN_OSSwapInt64(x)
^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
^
In file included from clib/librabbitmq/amqp_api.c:37:
clib/librabbitmq/amqp_private.h:258:1: error: definition of builtin function '__builtin_constant_p'
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)
^
:180:1: note: expanded from here
htonll
^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x) __DARWIN_OSSwapInt64(x)
^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
^
In file included from clib/librabbitmq/amqp_api.c:37:
clib/librabbitmq/amqp_private.h:259:1: error: expected ')'
DECLARE_XTOXLL(ntoh)
^
clib/librabbitmq/amqp_private.h:226:23: note: expanded from macro 'DECLARE_XTOXLL'
_AMQP_INLINE uint64_t func##ll(uint64_t val)
^
:180:1: note: expanded from here
ntohll
^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x) __DARWIN_OSSwapInt64(x)
^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
^
clib/librabbitmq/amqp_private.h:259:1: note: to match this '('
clib/librabbitmq/amqp_private.h:226:23: note: expanded from macro 'DECLARE_XTOXLL'
_AMQP_INLINE uint64_t func##ll(uint64_t val)
^
:180:1: note: expanded from here
ntohll
^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x) __DARWIN_OSSwapInt64(x)
^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
^
In file included from clib/librabbitmq/amqp_api.c:37:
clib/librabbitmq/amqp_private.h:259:1: error: definition of builtin function '__builtin_constant_p'
DECLARE_XTOXLL(ntoh)
^
clib/librabbitmq/amqp_private.h:226:23: note: expanded from macro 'DECLARE_XTOXLL'
_AMQP_INLINE uint64_t func##ll(uint64_t val)
^
:180:1: note: expanded from here
ntohll
^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x) __DARWIN_OSSwapInt64(x)
^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
^
4 errors generated.
error: command 'clang' failed with exit status 1
from librabbitmq.
Related Issues (20)
- Can't install on python:3.6.6-alpine container HOT 1
- Error installing on docker with python:alpine HOT 5
- "pip install librabbitmq" failed with error code 1 HOT 13
- UnicodeEncodeError with non-ascii headers
- Use system rabbitmq-c HOT 1
- undefined symbol: basic_properties_to_PyDict HOT 2
- Support version Python >= 3.7 HOT 5
- lang
- Missing exchange_bind implementation HOT 1
- Deprecation warning due to invalid escape sequences in Python 3.7
- "U" mode is no longer accepted from Python 3.9
- manylinux1 fails
- Librabbitmq fails to install in python 3.7 on debian buster when make is in path HOT 14
- Installation via pip behind a firewall
- Intallation fails for python 3.7/3.8: compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- HOT 4
- Error at install librabbitmq Big Sur 11.2.2 HOT 6
- Can not import _librabbitmq HOT 1
- Python 3.9 wheels HOT 3
- Add support to release linux aarch64 wheels
- New version required for Python 3.11 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from librabbitmq.