由于缺少zlib,无法在Windows 8上安装charlock_holmes

时间:2015-12-16 18:18:23

标签: ruby windows-8 gem zlib

我正在尝试在Windows 8上安装charlock_holmes,但我无法将其指向有效的zlib二进制文件。我试过来自Cygwin和zlib.net的vaiours dll,没有运气。问题是,如何正确链接到zlib?

gem install charlock_holmes -- --with-icu-dir=D:\download\icu4c-4_0_1-Win64-msvc8\usr\local  --with-icui18nlib=icuin --with-icudatalib=icudt --with-zlib=WHATHEVER_WONT_WORK
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing charlock_holmes:
        ERROR: Failed to build gem native extension.

        d:/bin/Ruby193/bin/ruby.exe extconf.rb --with-icu-dir=D:\download\icu4c-4_0_1-Win64-msvc8\usr\local --with-icui18nlib=icuin --with-icudatalib=icudt --with-    zlib=WHATHEVER_WONT_WORK
checking for main() in -licuin... yes
checking for main() in -licuin... yes
checking for unicode/ucnv.h... yes
checking for main() in -lWHATHEVER_WONT_WORK... no
libz missing
*** 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=d:/bin/Ruby193/bin/ruby
        --with-icu-dir
        --with-icu-include
        --without-icu-include=${icu-dir}/include
        --with-icu-lib
        --without-icu-lib=${icu-dir}/lib
        --with-icui18nlib
        --with-icui18nlib
        --with-zlib


Gem files will remain installed in d:/bin/Ruby193/lib/ruby/gems/1.9.1/gems/charlock_holmes-0.7.3 for inspection.
Results logged to d:/bin/Ruby193/lib/ruby/gems/1.9.1/gems/charlock_holmes-0.7.3/ext/charlock_holmes/gem_make.out

0 个答案:

没有答案