Created
July 24, 2012 10:37
-
-
Save fredrik/3169324 to your computer and use it in GitHub Desktop.
librabbitmq 0.9.9 install fails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~]> git clone git://github.com/celery/librabbitmq.git | |
Cloning into 'librabbitmq'... | |
remote: Counting objects: 716, done. | |
remote: Compressing objects: 100% (411/411), done. | |
remote: Total 716 (delta 405), reused 579 (delta 268) | |
Receiving objects: 100% (716/716), 728.04 KiB | 296 KiB/s, done. | |
Resolving deltas: 100% (405/405), done. | |
[~]> cd librabbitmq | |
[~/librabbitmq]> ls -l | |
total 192 | |
-rw-r--r-- 1 fredrik staff 76 24 Jul 11:33 AUTHORS | |
-rw-r--r-- 1 fredrik staff 4540 24 Jul 11:33 Changelog | |
-rw-r--r-- 1 fredrik staff 17987 24 Jul 11:33 LICENSE-GPL-2.0 | |
-rw-r--r-- 1 fredrik staff 25561 24 Jul 11:33 LICENSE-MPL-RabbitMQ | |
-rw-r--r-- 1 fredrik staff 363 24 Jul 11:33 MANIFEST.in | |
-rw-r--r-- 1 fredrik staff 1224 24 Jul 11:33 Makefile | |
drwxr-xr-x 3 fredrik staff 102 24 Jul 11:33 Modules | |
-rw-r--r-- 1 fredrik staff 2997 24 Jul 11:33 README.rst | |
-rw-r--r-- 1 fredrik staff 161 24 Jul 11:33 TODO | |
-rw-r--r-- 1 fredrik staff 2290 24 Jul 11:33 benchmark.py | |
drwxr-xr-x 3 fredrik staff 102 24 Jul 11:33 contrib | |
drwxr-xr-x 4 fredrik staff 136 24 Jul 11:33 librabbitmq | |
-rw-r--r-- 1 fredrik staff 3585 24 Jul 11:33 pavement.py | |
drwxr-xr-x 2 fredrik staff 68 24 Jul 11:33 rabbitmq-c | |
drwxr-xr-x 2 fredrik staff 68 24 Jul 11:33 rabbitmq-codegen | |
-rw-r--r-- 1 fredrik staff 221 24 Jul 11:33 setup.cfg | |
-rw-r--r-- 1 fredrik staff 7134 24 Jul 11:33 setup.py | |
[~/librabbitmq]> make develop | |
rm -rf build | |
git submodule init | |
Submodule 'rabbitmq-c' (https://github.com/alanxz/rabbitmq-c) registered for path 'rabbitmq-c' | |
Submodule 'rabbitmq-codegen' (https://github.com/rabbitmq/rabbitmq-codegen/) registered for path 'rabbitmq-codegen' | |
git submodule update | |
Cloning into 'rabbitmq-c'... | |
remote: Counting objects: 2531, done. | |
remote: Compressing objects: 100% (754/754), done. | |
remote: Total 2531 (delta 1811), reused 2460 (delta 1747) | |
Receiving objects: 100% (2531/2531), 1.38 MiB | 1.23 MiB/s, done. | |
Resolving deltas: 100% (1811/1811), done. | |
Submodule path 'rabbitmq-c': checked out '50a298e6c0df1ef8f2ec19da5949adef392e5131' | |
Cloning into 'rabbitmq-codegen'... | |
remote: Counting objects: 519, done. | |
remote: Compressing objects: 100% (271/271), done. | |
remote: Total 519 (delta 279), reused 484 (delta 244) | |
Receiving objects: 100% (519/519), 198.40 KiB, done. | |
Resolving deltas: 100% (279/279), done. | |
Submodule path 'rabbitmq-codegen': checked out '4e97f731cdd7ad6b246b3fb9bbc081be7877b405' | |
(cd rabbitmq-c; test -f configure || autoreconf -i) | |
glibtoolize: putting auxiliary files in `.'. | |
glibtoolize: copying file `./ltmain.sh' | |
glibtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and | |
glibtoolize: rerunning glibtoolize, to keep the correct libtool macros in-tree. | |
glibtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. | |
configure.ac:12: installing './config.guess' | |
configure.ac:12: installing './config.sub' | |
configure.ac:3: installing './install-sh' | |
configure.ac:3: installing './missing' | |
examples/Makefile.am: installing './depcomp' | |
(cd rabbitmq-c; test -f Makefile || automake --add-missing) | |
(test -f config.h || cd rabbitmq-c; ./configure) | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... ./install-sh -c -d | |
checking for gawk... no | |
checking for mawk... no | |
checking for nawk... no | |
checking for awk... awk | |
checking whether make sets $(MAKE)... yes | |
checking for style of include used by make... GNU | |
checking for gcc... gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... | |
checking whether we are cross compiling... no | |
checking for suffix of object files... o | |
checking whether we are using the GNU C compiler... yes | |
checking whether gcc accepts -g... yes | |
checking for gcc option to accept ISO C89... none needed | |
checking dependency style of gcc... gcc3 | |
checking how to run the C preprocessor... gcc -E | |
checking for grep that handles long lines and -e... /usr/bin/grep | |
checking for egrep... /usr/bin/grep -E | |
checking for ANSI C header files... yes | |
checking for sys/types.h... yes | |
checking for sys/stat.h... yes | |
checking for stdlib.h... yes | |
checking for string.h... yes | |
checking for memory.h... yes | |
checking for strings.h... yes | |
checking for inttypes.h... yes | |
checking for stdint.h... yes | |
checking for unistd.h... yes | |
checking minix/config.h usability... no | |
checking minix/config.h presence... no | |
checking for minix/config.h... no | |
checking whether it is safe to define __EXTENSIONS__... yes | |
checking for gcc... (cached) gcc | |
checking whether we are using the GNU C compiler... (cached) yes | |
checking whether gcc accepts -g... (cached) yes | |
checking for gcc option to accept ISO C89... (cached) none needed | |
checking dependency style of gcc... (cached) gcc3 | |
checking build system type... x86_64-apple-darwin11.4.2 | |
checking host system type... x86_64-apple-darwin11.4.2 | |
checking how to print strings... printf | |
checking for a sed that does not truncate output... /usr/bin/sed | |
checking for fgrep... /usr/bin/grep -F | |
checking for ld used by gcc... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld | |
checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no | |
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm | |
checking the name lister (/usr/bin/nm) interface... BSD nm | |
checking whether ln -s works... yes | |
checking the maximum length of command line arguments... 196608 | |
checking whether the shell understands some XSI constructs... yes | |
checking whether the shell understands "+="... yes | |
checking how to convert x86_64-apple-darwin11.4.2 file names to x86_64-apple-darwin11.4.2 format... func_convert_file_noop | |
checking how to convert x86_64-apple-darwin11.4.2 file names to toolchain format... func_convert_file_noop | |
checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld option to reload object files... -r | |
checking for objdump... objdump | |
checking how to recognize dependent libraries... pass_all | |
checking for dlltool... dlltool | |
checking how to associate runtime and link libraries... printf %s\n | |
checking for ar... ar | |
checking for archiver @FILE support... no | |
checking for strip... strip | |
checking for ranlib... ranlib | |
checking command to parse /usr/bin/nm output from gcc object... ok | |
checking for sysroot... no | |
checking for mt... no | |
checking if : is a manifest tool... no | |
checking for dsymutil... dsymutil | |
checking for nmedit... nmedit | |
checking for lipo... lipo | |
checking for otool... otool | |
checking for otool64... no | |
checking for -single_module linker flag... yes | |
checking for -exported_symbols_list linker flag... yes | |
checking for -force_load linker flag... yes | |
checking for dlfcn.h... yes | |
checking for objdir... .libs | |
checking if gcc supports -fno-rtti -fno-exceptions... no | |
checking for gcc option to produce PIC... -fno-common -DPIC | |
checking if gcc PIC flag -fno-common -DPIC works... yes | |
checking if gcc static flag -static works... no | |
checking if gcc supports -c -o file.o... yes | |
checking if gcc supports -c -o file.o... (cached) yes | |
checking whether the gcc linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes | |
checking dynamic linker characteristics... darwin11.4.2 dyld | |
checking how to hardcode library paths into programs... immediate | |
checking whether stripping libraries is possible... yes | |
checking if libtool supports shared libraries... yes | |
checking whether to build shared libraries... yes | |
checking whether to build static libraries... yes | |
checking for ANSI C header files... (cached) yes | |
checking for inline... __inline__ | |
checking whether byte ordering is bigendian... no | |
checking location of AMQP codegen directory... ../rabbitmq-codegen | |
checking finding a python with simplejson installed... python | |
checking for poptGetContext in -lpopt... no | |
checking for xmlto... no | |
checking that generated files are newer than configure... done | |
configure: creating ./config.status | |
config.status: creating Makefile | |
config.status: creating librabbitmq/Makefile | |
config.status: creating tests/Makefile | |
config.status: creating examples/Makefile | |
config.status: creating tools/Makefile | |
config.status: creating tools/doc/Makefile | |
config.status: creating config.h | |
config.status: executing depfiles commands | |
config.status: executing libtool commands | |
(cd rabbitmq-c; make distdir) | |
mkdir -p codegen | |
cp -r "./../rabbitmq-codegen"/* codegen | |
make -C codegen clean | |
rm -f *.pyc | |
if test -d "librabbitmq-0.0.1"; then find "librabbitmq-0.0.1" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "librabbitmq-0.0.1" || { sleep 5 && rm -rf "librabbitmq-0.0.1"; }; else :; fi | |
test -d "librabbitmq-0.0.1" || mkdir "librabbitmq-0.0.1" | |
(cd librabbitmq && make top_distdir=../librabbitmq-0.0.1 distdir=../librabbitmq-0.0.1/librabbitmq \ | |
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir) | |
PYTHONPATH=../../rabbitmq-codegen python ./codegen.py header ../../rabbitmq-codegen/amqp-rabbitmq-0.9.1.json amqp_framing.h | |
(cd tests && make top_distdir=../librabbitmq-0.0.1 distdir=../librabbitmq-0.0.1/tests \ | |
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir) | |
(cd examples && make top_distdir=../librabbitmq-0.0.1 distdir=../librabbitmq-0.0.1/examples \ | |
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir) | |
(cd tools && make top_distdir=../librabbitmq-0.0.1 distdir=../librabbitmq-0.0.1/tools \ | |
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir) | |
(cd doc && make top_distdir=../../librabbitmq-0.0.1 distdir=../../librabbitmq-0.0.1/tools/doc \ | |
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir) | |
test -n "" \ | |
|| find "librabbitmq-0.0.1" -type d ! -perm -755 \ | |
-exec chmod u+rwx,go+rx {} \; -o \ | |
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | |
! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | |
! -type d ! -perm -444 -exec /bin/sh /Users/fredrik/librabbitmq/rabbitmq-c/install-sh -c -m a+r {} {} \; \ | |
|| chmod -R a+r "librabbitmq-0.0.1" | |
mv "rabbitmq-c/librabbitmq-0.0.1" "clib" | |
python setup.py build | |
running build | |
- configure rabbitmq-c... | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... ./install-sh -c -d | |
checking for gawk... no | |
checking for mawk... no | |
checking for nawk... no | |
checking for awk... awk | |
checking whether make sets $(MAKE)... yes | |
checking for style of include used by make... GNU | |
checking for gcc... gcc | |
checking whether the C compiler works... no | |
configure: error: in `/Users/fredrik/librabbitmq/clib': | |
configure: error: C compiler cannot create executables | |
See `config.log' for more details | |
- generating 'clib/librabbitmq/amqp_framing.h' | |
/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python clib/librabbitmq/codegen.py header rabbitmq-codegen/amqp-rabbitmq-0.9.1.json clib/librabbitmq/amqp_framing.h | |
- generating 'clib/librabbitmq/amqp_framing.c' | |
/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python clib/librabbitmq/codegen.py body rabbitmq-codegen/amqp-rabbitmq-0.9.1.json clib/librabbitmq/amqp_framing.c | |
running build_py | |
creating build | |
creating build/lib.macosx-10.7-x86_64-2.7 | |
creating build/lib.macosx-10.7-x86_64-2.7/librabbitmq | |
copying librabbitmq/__init__.py -> build/lib.macosx-10.7-x86_64-2.7/librabbitmq | |
running build_ext | |
building '_librabbitmq' extension | |
creating build/temp.macosx-10.7-x86_64-2.7 | |
creating build/temp.macosx-10.7-x86_64-2.7/Modules | |
creating build/temp.macosx-10.7-x86_64-2.7/Modules/_librabbitmq | |
creating build/temp.macosx-10.7-x86_64-2.7/clib | |
creating build/temp.macosx-10.7-x86_64-2.7/clib/librabbitmq | |
creating build/temp.macosx-10.7-x86_64-2.7/clib/librabbitmq/unix | |
/usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7 -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -W -Wall -ansi -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c Modules/_librabbitmq/connection.c -o build/temp.macosx-10.7-x86_64-2.7/Modules/_librabbitmq/connection.o | |
/usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7 -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -W -Wall -ansi -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/amqp_api.c -o build/temp.macosx-10.7-x86_64-2.7/clib/librabbitmq/amqp_api.o | |
clib/librabbitmq/amqp_api.c:33:10: fatal error: 'config.h' file not found | |
#include "config.h" | |
^ | |
1 error generated. | |
error: command '/usr/bin/clang' failed with exit status 1 | |
make: *** [build] Error 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index 7c5ccf8..527c238 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -57,7 +57,7 @@ $(RABBIT_TARGET): | |
dist: rabbitmq-c $(RABBIT_TARGET) | |
- | |
+ (cd clib; test -f clib/config.h || ./configure) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment