Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6F06A10146 for ; Thu, 10 Apr 2014 21:41:19 +0000 (UTC) Received: (qmail 70355 invoked by uid 500); 10 Apr 2014 21:41:18 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 69473 invoked by uid 500); 10 Apr 2014 21:41:16 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 69453 invoked by uid 99); 10 Apr 2014 21:41:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2014 21:41:15 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mutsuzaki@gmail.com designates 74.125.82.175 as permitted sender) Received: from [74.125.82.175] (HELO mail-we0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2014 21:41:11 +0000 Received: by mail-we0-f175.google.com with SMTP id q58so4614652wes.34 for ; Thu, 10 Apr 2014 14:40:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=nGJ6q0Hl1nZkp7IyPMohwk58AqgszJ1/rLacmozh1dA=; b=0UPSe0cIGmdt3vaTE2f7At9lxDTa8Lfg2jEdz0Tr3fkI1VP0AK1c0JCFBnVJWm9Q/J mGzGTlGMZsFX9P6eV9ITSJ0V2E9KHmzjjGhkd1Fy0CMHkpIAKFqa20uv2X11xqdvwWJt Rc6tYZWoRXZ9SkEjh3tADq8qcQ8EvdRxBT41WNiPgJhJhgXVG5qQO+U2jd0h4c8OJQxi n8kRXNCsGrqz32yaV0rQYjfG+edDqGKUfT57DvIVUgt1HgtbZydEYZMo70Sno3z1OVn6 RdiGbrkJBUVGlklgin2gprGuoB+FBsFpA9vY4cyt7VF+T/Wm6Xq6o6OfGP1mMNdvT1tC huQg== MIME-Version: 1.0 X-Received: by 10.180.94.8 with SMTP id cy8mr18221765wib.29.1397166049782; Thu, 10 Apr 2014 14:40:49 -0700 (PDT) Reply-To: michi@cs.stanford.edu Sender: mutsuzaki@gmail.com Received: by 10.194.103.40 with HTTP; Thu, 10 Apr 2014 14:40:49 -0700 (PDT) In-Reply-To: References: Date: Thu, 10 Apr 2014 14:40:49 -0700 X-Google-Sender-Auth: XiYr5j08fS0JIMoqeRvttiHZU0M Message-ID: Subject: Re: Is it possible to build the zookeeper Ruby gem under Cygwin? From: Michi Mutsuzaki To: "user@zookeeper.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Mike, We don't maintain the Ruby binding. Maybe you can ask the question on this github project? https://github.com/zk-ruby/zookeeper On Thu, Apr 10, 2014 at 12:53 PM, Mike Christensen wrote: > 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 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
' > from extconf.rb:71:in `chdir' > from extconf.rb:71:in `block in
' > from extconf.rb:55:in `chdir' > from extconf.rb:55:in `
' > > > 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?