zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Christensen <m...@kitchenpc.com>
Subject Is it possible to build the zookeeper Ruby gem under Cygwin?
Date Thu, 10 Apr 2014 19:53:33 GMT
Greetings!  I've been tasked with investigating Synapse, which uses
Zookeeper.  I'm testing out using Cygwin, though our production environment
will be on Unix.  So far, I've been unable to install the Zookeeper Ruby
gem:

$ gem install zookeeper

The output I get is:

Building native extensions.  This could take a while...
ERROR:  Error installing zookeeper:
        ERROR: Failed to build gem native extension.

        /usr/bin/ruby.exe extconf.rb
Building zkc.
tar xzf zkc-3.4.5.tar.gz 2>&1
patch -p0 < patches/zkc-3.4.5-logging.patch 2>&1
patching file zkc-3.4.5/c/src/zookeeper.c
./configure --prefix=/usr/lib/ruby/gems/1.9.1/gems/zookeeper-1.4.8/ext
--with-pic --without-cppunit --disable-dependency-tracking  2>&1
checking for doxygen... /usr/bin/doxygen
checking for perl... /usr/bin/perl
checking for dot... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for generated/zookeeper.jute.c... yes
checking for generated/zookeeper.jute.h... yes
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking whether gcc and cc understand -c and -o together... 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 a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking build system type... ./config.guess: unable to guess system type

This script, last modified 2005-07-08, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from


http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
and

http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2005-07-08

uname -m = x86_64
uname -r = 1.7.29(0.272/5/3)
uname -s = CYGWIN_NT-6.1
uname -v = 2014-04-07 13:46

/usr/bin/uname -p = unknown
/bin/uname -X     =

hostinfo               =
/bin/universe          =
/usr/bin/arch -k       =
/bin/arch              = x86_64
/usr/bin/oslevel       =
/usr/convex/getsysinfo =

UNAME_MACHINE = x86_64
UNAME_RELEASE = 1.7.29(0.272/5/3)
UNAME_SYSTEM  = CYGWIN_NT-6.1
UNAME_VERSION = 2014-04-07 13:46
configure: error: cannot guess build type; you must specify one
*** 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
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/bin/ruby
extconf.rb:51:in `safe_sh': command failed! ./configure
--prefix=/usr/lib/ruby/gems/1.9.1/gems/zookeeper-1.4.8/ext --with-pic
--without-cppunit --disable-dependency-tracking  2>&1 (RuntimeError)
        from extconf.rb:75:in `block (2 levels) in <main>'
        from extconf.rb:71:in `chdir'
        from extconf.rb:71:in `block in <main>'
        from extconf.rb:55:in `chdir'
        from extconf.rb:55:in `<main>'


Gem files will remain installed in
/usr/lib/ruby/gems/1.9.1/gems/zookeeper-1.4.8 for inspection.
Results logged to
/usr/lib/ruby/gems/1.9.1/gems/zookeeper-1.4.8/ext/gem_make.out


*My Questions:*

   1. The error appears to be in config.guess, which appears to be a very
   out of date version. However, I've looked at *every* config.guess file
   on my machine and all of them are up to date. I have no idea what
   ./config.guess points to. Maybe this is something it downloads from the
   gem repository?
   2. Towards the bottom, the error is configure: error: cannot guess build
   type; you must specify one - Ok, that's fine. How do I specify a build
   type? I've looked at various gem installparameters and nothing seems to
   fit.
   3. Can I somehow build this native extension by hand? I believe this is
   basically the native zookeeper libraries written in C.
   4. The log refers to a file called mkmf.log which might have some clues.
   However, this file doesn't seem to exist anywhere. Where is this written?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message