Giter Club home page Giter Club logo

Comments (5)

ask avatar ask commented on May 28, 2024

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.

jankansky avatar jankansky commented on May 28, 2024

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.

rhettg avatar rhettg commented on May 28, 2024

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.

 avatar commented on May 28, 2024

thanks this was helpful.

from librabbitmq.

DaveTian avatar DaveTian commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.