Skip to content

Instantly share code, notes, and snippets.

@eric
Created May 3, 2010 04:38
Show Gist options
  • Save eric/387760 to your computer and use it in GitHub Desktop.
Save eric/387760 to your computer and use it in GitHub Desktop.
CRYPT [132 : 0] eric@alien:/home/eric > sudo gem install memcached
Building native extensions. This could take a while...
ERROR: Error installing memcached:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
Building libmemcached.
tar xzf libmemcached-0.32.tar.gz 2>&1
Patching libmemcached source.
patch -p1 -Z < libmemcached.patch
patching file libmemcached-0.32/libmemcached/memcached_response.c
patching file libmemcached-0.32/libmemcached/memcached.c
patching file libmemcached-0.32/libmemcached/memcached.h
patching file libmemcached-0.32/libmemcached/memcached_connect.c
patching file libmemcached-0.32/libmemcached/memcached_hash.c
patching file libmemcached-0.32/libmemcached/memcached_hosts.c
patching file libmemcached-0.32/libmemcached/memcached_storage.c
Patching libmemcached with SASL support.
patch -p1 -Z < sasl.patch
patching file libmemcached-0.32/aclocal.m4
patching file libmemcached-0.32/clients/client_options.h
patching file libmemcached-0.32/clients/Makefile.am
patching file libmemcached-0.32/clients/Makefile.in
patching file libmemcached-0.32/clients/memcat.c
patching file libmemcached-0.32/clients/memcp.c
patching file libmemcached-0.32/clients/memdump.c
patching file libmemcached-0.32/clients/memflush.c
patching file libmemcached-0.32/clients/memrm.c
patching file libmemcached-0.32/clients/memslap.c
patching file libmemcached-0.32/clients/utilities.c
patching file libmemcached-0.32/clients/utilities.h
patching file libmemcached-0.32/config/config.rpath
patching file libmemcached-0.32/config.h.in
patching file libmemcached-0.32/configure
patching file libmemcached-0.32/configure.ac
patching file libmemcached-0.32/docs/Makefile.am
patching file libmemcached-0.32/docs/Makefile.in
patching file libmemcached-0.32/docs/memcached_sasl.pod
patching file libmemcached-0.32/libmemcached/Makefile.am
patching file libmemcached-0.32/libmemcached/Makefile.in
patching file libmemcached-0.32/libmemcached/memcached/protocol_binary.h
patching file libmemcached-0.32/libmemcached/memcached_configure.h
patching file libmemcached-0.32/libmemcached/memcached_configure.h.in
patching file libmemcached-0.32/libmemcached/memcached_connect.c
Not setting time of file libmemcached-0.32/libmemcached/memcached_connect.c (time mismatch)
patching file libmemcached-0.32/libmemcached/memcached_constants.h
patching file libmemcached-0.32/libmemcached/memcached.h
Not setting time of file libmemcached-0.32/libmemcached/memcached.h (time mismatch)
patching file libmemcached-0.32/libmemcached/memcached_response.c
Not setting time of file libmemcached-0.32/libmemcached/memcached_response.c (time mismatch)
patching file libmemcached-0.32/libmemcached/memcached_sasl.c
patching file libmemcached-0.32/libmemcached/memcached_sasl.h
patching file libmemcached-0.32/libmemcached/memcached_strerror.c
patching file libmemcached-0.32/libmemcachedutil/Makefile.in
patching file libmemcached-0.32/m4/pandora_have_sasl.m4
patching file libmemcached-0.32/Makefile.in
patching file libmemcached-0.32/support/Makefile.in
patching file libmemcached-0.32/tests/function.c
patching file libmemcached-0.32/tests/Makefile.in
patching file libmemcached-0.32/tests/output.cmp
env CFLAGS='-fPIC -I/usr/lib/ruby/gems/1.8/gems/memcached-0.19.3/ext/include -L/usr/lib/ruby/gems/1.8/gems/memcached-0.19.3/ext/lib -g -O2 -g -O2 ' LDFLAGS='-fPIC -L/usr/lib/ruby/gems/1.8/gems/memcached-0.19.3/ext/lib -L. -rdynamic -Wl,-export-dynamic -L. -rdynamic -Wl,-export-dynamic' ./configure --prefix=/usr/lib/ruby/gems/1.8/gems/memcached-0.19.3/ext --without-memcached --disable-shared --disable-utils --disable-dependency-tracking 2>&1
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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... none
checking for isainfo... no
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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 a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) none
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -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/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
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... no
checking whether to build static libraries... yes
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking if g++ supports C++0x features without additional flags... no
checking if g++ supports C++0x features with -std=c++0x... yes
checking if g++ supports C++0x features with -std=gnu++0x... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) none
checking how to run the C preprocessor... gcc -E
checking whether __SUNPRO_C is declared... no
checking whether __ICC is declared... no
checking for ISO C++ 98 include files... yes
checking memory usability... yes
checking memory presence... yes
checking for memory... yes
checking tr1/memory usability... yes
checking tr1/memory presence... yes
checking for tr1/memory... yes
checking boost/shared_ptr.hpp usability... no
checking boost/shared_ptr.hpp presence... no
checking for boost/shared_ptr.hpp... no
checking the location of shared_ptr header file...
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for working volatile... yes
checking for C/C++ restrict keyword... __restrict
checking whether time.h and sys/time.h may both be included... yes
checking for size_t... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking "C Compiler version--yes"... "gcc (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2)"
checking "C++ Compiler version"... "g++ (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2)"
checking for simple visibility declarations... yes
checking whether to enable assertions... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking whether it is safe to use -fdiagnostics-show-option... yes
checking whether it is safe to use -Wconversion... yes
checking whether it is safe to use -Wconversion with htons... no
checking whether it is safe to use -Wmissing-declarations from C++... yes
checking whether it is safe to use -Wlogical-op... yes
checking whether it is safe to use -Wredundant-decls from C++... yes
checking for doxygen... no
checking for perl... perl
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for library containing getopt_long... none required
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for library containing floorf... -lm
checking for htonll... no
checking byteorder... little endian
checking for pod2man... /usr/bin/pod2man
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for libsasl... no
checking for libsasl2... yes
checking how to link with libsasl2... -lsasl2
configure: creating ./config.status
config.status: creating Makefile
config.status: creating clients/Makefile
config.status: creating tests/Makefile
config.status: creating docs/Makefile
config.status: creating libmemcached/Makefile
config.status: creating libmemcached/memcached_configure.h
config.status: creating libmemcachedutil/Makefile
config.status: creating support/Makefile
config.status: creating support/libmemcached.pc
config.status: creating support/libmemcached.spec
config.status: creating support/libmemcached-fc.spec
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
---
Configuration summary for libmemcached version 0.32
* Installation prefix: /usr/lib/ruby/gems/1.8/gems/memcached-0.19.3/ext
* System type: pc-linux-gnu
* Host CPU: i686
* C Compiler: gcc (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2)
* Assertions enabled: yes
* Debug enabled: no
* Warnings as failure: no
* With SASL support: -lsasl2
---
make CXXFLAGS=' -std=gnu++98 -g -O2 -g -O2 ' || true 2>&1
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /usr/lib/ruby/gems/1.8/gems/memcached-0.19.3/ext/libmemcached-0.32/config/missing --run aclocal-1.11 -I m4
cd . && /bin/sh /usr/lib/ruby/gems/1.8/gems/memcached-0.19.3/ext/libmemcached-0.32/config/missing --run automake-1.11 --gnu
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /usr/lib/ruby/gems/1.8/gems/memcached-0.19.3/ext/libmemcached-0.32/config/missing --run autoconf
configure:21918: error: possibly undefined macro: AC_LIB_HAVE_LINKFLAGS
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
make: *** [configure] Error 1
make install || true 2>&1
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --prefix=/usr/lib/ruby/gems/1.8/gems/memcached-0.19.3/ext --without-memcached --disable-shared --disable-utils --disable-dependency-tracking CFLAGS=-fPIC -I/usr/lib/ruby/gems/1.8/gems/memcached-0.19.3/ext/include -L/usr/lib/ruby/gems/1.8/gems/memcached-0.19.3/ext/lib -g -O2 -g -O2 LDFLAGS=-fPIC -L/usr/lib/ruby/gems/1.8/gems/memcached-0.19.3/ext/lib -L. -rdynamic -Wl,-export-dynamic -L. -rdynamic -Wl,-export-dynamic --no-create --no-recursion
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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... none
checking for isainfo... no
checking whether gcc and cc understand -c and -o together... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... no
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 a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -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/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
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... no
checking whether to build static libraries... yes
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking if g++ supports C++0x features without additional flags... no
checking if g++ supports C++0x features with -std=c++0x... yes
checking if g++ supports C++0x features with -std=gnu++0x... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking target system type... i686-pc-linux-gnu
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) none
checking how to run the C preprocessor... gcc -E
checking whether __SUNPRO_C is declared... no
checking whether __ICC is declared... no
checking for ISO C++ 98 include files... yes
checking memory usability... yes
checking memory presence... yes
checking for memory... yes
checking tr1/memory usability... yes
checking tr1/memory presence... yes
checking for tr1/memory... yes
checking boost/shared_ptr.hpp usability... no
checking boost/shared_ptr.hpp presence... no
checking for boost/shared_ptr.hpp... no
checking the location of shared_ptr header file...
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for working volatile... yes
checking for C/C++ restrict keyword... __restrict
checking whether time.h and sys/time.h may both be included... yes
checking for size_t... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking "C Compiler version--yes"... "gcc (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2)"
checking "C++ Compiler version"... "g++ (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2)"
checking for simple visibility declarations... yes
checking whether to enable assertions... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking whether it is safe to use -fdiagnostics-show-option... yes
checking whether it is safe to use -Wconversion... yes
checking whether it is safe to use -Wconversion with htons... no
checking whether it is safe to use -Wmissing-declarations from C++... yes
checking whether it is safe to use -Wlogical-op... yes
checking whether it is safe to use -Wredundant-decls from C++... yes
checking for doxygen... no
checking for perl... perl
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for library containing getopt_long... none required
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for library containing floorf... -lm
checking for htonll... no
checking byteorder... little endian
checking for pod2man... /usr/bin/pod2man
./configure: line 21918: syntax error near unexpected token `sasl,,'
./configure: line 21918: ` AC_LIB_HAVE_LINKFLAGS(sasl,,'
make: *** [config.status] Error 2
extconf.rb:60:in `chdir': No such file or directory - /usr/lib/ruby/gems/1.8/gems/memcached-0.19.3/ext/lib (Errno::ENOENT)
from extconf.rb:60
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/memcached-0.19.3 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/memcached-0.19.3/ext/gem_make.out
CRYPT [133 : 1] eric@alien:/home/eric > auto-logout
checking whether it is safe to use -Wredundant-decls from C++... yes
checking for doxygen... no
checking for perl... perl
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for library containing getopt_long... none required
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for library containing floorf... -lm
checking for htonll... no
checking byteorder... little endian
checking for pod2man... /usr/bin/pod2man
./configure: line 21918: syntax error near unexpected token `sasl,,'
./configure: line 21918: ` AC_LIB_HAVE_LINKFLAGS(sasl,,'
make: *** [config.status] Error 2
extconf.rb:60:in `chdir': No such file or directory - /usr/lib/ruby/gems/1.8/gems/memcached-0.19.3/ext/lib (Errno::ENOENT)
from extconf.rb:60
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/memcached-0.19.3 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/memcached-0.19.3/ext/gem_make.out
CRYPT [2 : 1] eric@alien:/home/eric >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment