Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gem won't install on windows? #59

Open
richardgill opened this issue Feb 10, 2014 · 3 comments
Open

Gem won't install on windows? #59

richardgill opened this issue Feb 10, 2014 · 3 comments

Comments

@richardgill
Copy link

This seems to be for a combination of problems. This includes lack of the commands tar and patch. It then tries to run a ./configure, which also doesn't work on windows. Is it possible to make it run on windows? Or am I missing something?

gem install zookeeper -v '1.4.8'
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing zookeeper:
ERROR: Failed to build gem native extension.

C:/Ruby193/bin/ruby.exe extconf.rb

'tar' is not recognized as an internal or external command,
operable program or batch file.
*** 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}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby193/bin/ruby
extconf.rb:51:in safe_sh': command failed! tar xzf zkc-3.4.5.tar.gz 2>&1 (RuntimeError) from extconf.rb:62:inblock in

'
from extconf.rb:55:in chdir' from extconf.rb:55:in'
Building zkc.

@Crystark
Copy link

I'm having trouble installing this under windows as well though the errror isn't on the same command.

$ gem install zookeeper -v '1.4.8'
Fetching: zookeeper-1.4.8.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing zookeeper:
        ERROR: Failed to build gem native extension.

    c:/RailsInstaller/Ruby2.0.0/bin/ruby.exe extconf.rb
patching file `zkc-3.4.5/c/src/zookeeper.c'
'.' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
*** 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}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=c:/RailsInstaller/Ruby2.0.0/bin/ruby
extconf.rb:51:in `safe_sh': command failed! ./configure --prefix=c:/RailsInstall
er/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/zookeeper-1.4.8/ext --with-pic --without-c
ppunit --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>'
Building zkc.
tar xzf zkc-3.4.5.tar.gz 2>&1
patch -p0 < patches/zkc-3.4.5-logging.patch 2>&1
./configure --prefix=c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/zookee
per-1.4.8/ext --with-pic --without-cppunit --disable-dependency-tracking  2>&1


Gem files will remain installed in c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0
.0/gems/zookeeper-1.4.8 for inspection.
Results logged to c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/zookeeper
-1.4.8/ext/gem_make.out

@slyphon
Copy link
Contributor

slyphon commented Mar 13, 2014

This might work under cygwin, but install depends on patch, tar, make, gcc, and probably two or three other unix commands.

I don't plan on adding windows support (I don't know if zkc even supports it). If someone were willing to step up and do the work to get it to build, and be willing to maintain that code, I'd be open to merging it.

OTOH the jruby gem has zero native dependencies

Jonathan Simms
(sent from my mobile device)

On Mar 13, 2014, at 6:44, Crystark [email protected] wrote:

I having trouble installing this under windows as well though the errror isn't on the same command.

$ gem install zookeeper -v '1.4.8'
Fetching: zookeeper-1.4.8.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing zookeeper:
ERROR: Failed to build gem native extension.

c:/RailsInstaller/Ruby2.0.0/bin/ruby.exe extconf.rb

patching file `zkc-3.4.5/c/src/zookeeper.c'
'.' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
*** 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}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=c:/RailsInstaller/Ruby2.0.0/bin/ruby
extconf.rb:51:in safe_sh': command failed! ./configure --prefix=c:/RailsInstall er/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/zookeeper-1.4.8/ext --with-pic --without-c ppunit --disable-dependency-tracking 2>&1 (RuntimeError) from extconf.rb:75:inblock (2 levels) in

'
from extconf.rb:71:in chdir' from extconf.rb:71:inblock in '
from extconf.rb:55:in chdir' from extconf.rb:55:in'
Building zkc.
tar xzf zkc-3.4.5.tar.gz 2>&1
patch -p0 < patches/zkc-3.4.5-logging.patch 2>&1
./configure --prefix=c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/zookee
per-1.4.8/ext --with-pic --without-cppunit --disable-dependency-tracking 2>&1

Gem files will remain installed in c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0
.0/gems/zookeeper-1.4.8 for inspection.
Results logged to c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/zookeeper
-1.4.8/ext/gem_make.out

Reply to this email directly or view it on GitHub.

@madhupsgr
Copy link

Capture

From cygwin also got same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants