icu required (brew install icu4c or apt-get install libicu-dev)

1,894 views
Skip to first unread message

Extdevelopment

unread,
Mar 19, 2015, 1:07:27 AM3/19/15
to rubyin...@googlegroups.com
Hi,
I would like to install this https://github.com/osterman/copyright-header on Windows7.
Have you any solution for me?

I tried icu Binary Distribution  from https://ssl.icu-project.org/download/4.0.html
http://download.icu-project.org/files/icu4c/4.0.1/icu4c-4_0_1-Win32-msvc8.zip
But not helped.

Many thx.
  • Version of Windows: Win7 Home Professional
  • Version of Ruby (ruby --version): ruby 1.9.3p550 (2014-10-27) [i386-mingw32]
  • Version of RubyGems (gem --version): 1.8.29
  • Indicate that you have installed DevKit (according to the instructions) and which version (exact filename). DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
  • Against which package (knapsack filename or any other obtained from the web) you're trying to link the gem.
  • Full command line executed that caused the error (gem install ...)
  • Full output of the error. To copy from the console please see this article.
  • Contents of mkmf.log that are generated inside the target gem directory (use pastie or gist to host the contents)

gem install copyright-header -- --with-icu-dir=c:\Ruby193\DevKit\icu4\bin --with-icu-lib=c:\Ruby193\DevKit\icu4\lib --with-icu-include=c:\Ruby193\DevKit\icu4\include
Building native extensions.  This could take a while...
ERROR:  Error installing copyright-header:
        ERROR: Failed to build gem native extension.

        C:/Ruby193/bin/ruby.exe extconf.rb --with-icu-dir=c:\Ruby193\DevKit\icu4\bin --with-icu-lib=c:\Ruby193\DevKit\icu4\lib --with-icu-include=c:\Ruby193\Dev
Kit\icu4\include
checking for main() in -licui18n... no
which: no brew in ()
checking for main() in -licui18n... no


***************************************************************************************
*********** icu required (brew install icu4c or apt-get install libicu-dev) ***********
***************************************************************************************
*** 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
        --with-icu-dir
        --with-icu-include=${icu-dir}/include
        --with-icu-lib=${icu-dir}/lib
        --with-icui18nlib
        --without-icui18nlib
        --with-icui18nlib
        --without-icui18nlib

Justin Baker

unread,
Mar 19, 2015, 8:11:51 PM3/19/15
to rubyin...@googlegroups.com
Hey, See inline responses.

On Wed, Mar 18, 2015 at 5:57 PM, Extdevelopment <extdeve...@gmail.com> wrote:
Hi,
I would like to install this https://github.com/osterman/copyright-header on Windows7.
Have you any solution for me?

I tried icu Binary Distribution  from https://ssl.icu-project.org/download/4.0.html
http://download.icu-project.org/files/icu4c/4.0.1/icu4c-4_0_1-Win32-msvc8.zip
But not helped.

Actually, that binary is build with msvc8 (Microsoft Visual C/C++)  and is almost certainly incompatible with our mingw build/DevKit.
You'll probably end up having to compile it with the DevKit  yourself or some mingw binary distributions may work.

Justin
Reply all
Reply to author
Forward
0 new messages