arthurnn / memcached

A Ruby interface to the libmemcached C client
Academic Free License v3.0
432 stars 127 forks source link

Compilation problem #143

Closed peppo1616 closed 11 years ago

peppo1616 commented 11 years ago

I'm using this gem on an Angstrom based platform, i've not po2man on this device. How to skip this step on compiling?

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb 

checking for sasl/sasl.h... yes extconf.rb:11:in <main>': Use RbConfig instead of obsolete and deprecated Config. extconf.rb:11:in

': Use RbConfig instead of obsolete and deprecated Config. extconf.rb:12:in <main>': Use RbConfig instead of obsolete and deprecated Config. extconf.rb:14:in
': Use RbConfig instead of obsolete and deprecated Config. extconf.rb:18:in <main>': Use RbConfig instead of obsolete and deprecated Config. extconf.rb:18:in
': Use RbConfig instead of obsolete and deprecated Config. extconf.rb:19:in <main>': Use RbConfig instead of obsolete and deprecated Config. extconf.rb:20:in
': Use RbConfig instead of obsolete and deprecated Config. extconf.rb:26:in `
': Use RbConfig instead of obsolete and deprecated Config. Touching all files so autoconf doesn't run. find . | xargs touch -t 201311071153.42 Configuring libmemcached. env CFLAGS='-fPIC -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC -fPIC' LDFLAGS='-fPIC -L. -rdynamic -Wl,-export-dynamic -L/usr/local/lib//lib -Wl,-R/usr/local/lib//lib -L. -rdynamic -Wl,-export-dynamic -L/usr/local/lib//lib -Wl,-R/usr/local/lib//lib -L/usr/local/lib' ./configure --prefix=/home/root/workspace/ruby/hostlink_memc/vendor/cache/ruby/2.0.0/gems/memcached-1.7.0/ext --without-memcached --disable-shared --disable-utils --disable-dependency-tracking CC="gcc" 2>&1 checking build system type... armv7l-unknown-linux-gnueabi checking host system type... armv7l-unknown-linux-gnueabi checking target system type... armv7l-unknown-linux-gnueabi 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 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... 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 how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/arm-angstrom-linux-gnueabi/bin/ld checking if the linker (/usr/arm-angstrom-linux-gnueabi/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... 512 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert armv7l-unknown-linux-gnueabi file names to armv7l-unknown-linux-gnueabi format... func_convert_file_noop checking how to convert armv7l-unknown-linux-gnueabi file names to toolchain format... func_convert_file_noop checking for /usr/arm-angstrom-linux-gnueabi/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for mt... no checking if : is a manifest tool... no 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 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... yes 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/arm-angstrom-linux-gnueabi/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 how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/arm-angstrom-linux-gnueabi/bin/ld checking if the linker (/usr/arm-angstrom-linux-gnueabi/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/arm-angstrom-linux-gnueabi/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... yes 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/arm-angstrom-linux-gnueabi/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) 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.3.3" checking "C++ Compiler version"... "g++ (GCC) 4.3.3" 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... no configure: error: "Could not find pod2man anywhere in path" * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.

Provided configuration options: --with-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/local/bin/ruby extconf.rb:70:in run': 'env CFLAGS='-fPIC -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC -fPIC' LDFLAGS='-fPIC -L. -rdynamic -Wl,-export-dynamic -L/usr/local/lib//lib -Wl,-R/usr/local/lib//lib -L. -rdynamic -Wl,-export-dynamic -L/usr/local/lib//lib -Wl,-R/usr/local/lib//lib -L/usr/local/lib' ./configure --prefix=/home/root/workspace/ruby/hostlink_memc/vendor/cache/ruby/2.0.0/gems/memcached-1.7.0/ext --without-memcached --disable-shared --disable-utils --disable-dependency-tracking CC="gcc" 2>&1' failed (RuntimeError) from extconf.rb:50:inblock (2 levels) in check_libmemcached' from extconf.rb:47:in chdir' from extconf.rb:47:inblock in check_libmemcached' from extconf.rb:46:in chdir' from extconf.rb:46:incheck_libmemcached' from extconf.rb:73:in `

'

Gem files will remain installed in /home/root/workspace/ruby/hostlink_memc/vendor/cache/ruby/2.0.0/gems/memcached-1.7.0 for inspection. Results logged to /home/root/workspace/ruby/hostlink_memc/vendor/cache/ruby/2.0.0/gems/memcached-1.7.0/ext/gem_make.out

An error occurred while installing memcached (1.7.0), and Bundler cannot continue. Make sure that gem install memcached -v '1.7.0' succeeds before bundling.

Thanks