An error occured while installing charlock_holmes libicu

E-rich picture E-rich · Oct 24, 2012 · Viewed 7k times · Source

I'm trying to install Gitlab following this install script, but am running into an issue where the charlock_holmes gem fails to install. I'm not familiar with Ruby. My charlock_holmes-0.6.8 gem_make.out file is below.

/home/gitlabuser/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for main() in -licui18n... no
which: no brew in (/home/gitlabuser/.rvm/gems/ruby-1.9.2-p290/bin:/home/gitlabuser/.rvm/gems/ruby-1.9.2-p290@global/bin:/home/gitlabuser/.rvm/rubies/ruby-1.9.2-p290/bin:/home/gitlabuser/.rvm/gems/ruby-1.9.2-p290/bin:/home/gitlabuser/.rvm/gems/ruby-1.9.2-p290@global/bin:/home/gitlabuser/.rvm/rubies/ruby-1.9.2-p290/bin:/home/gitlabuser/.rvm/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/gitlabuser/bin:/usr/lib64/qt4/bin/)
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=/home/gitlabuser/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
    --with-icu-dir
    --without-icu-dir
    --with-icu-include
    --without-icu-include=${icu-dir}/include
    --with-icu-lib
    --without-icu-lib=${icu-dir}/lib
    --with-icui18nlib
    --without-icui18nlib
    --with-icui18nlib
    --without-icui18nlib

I have the libicu.x86_64 package installed (and also tried the libicu.i686 when I ran into problems, but uninstalled it after it didn't work).

It appears the libicu package isn't including the files required by the charlock_holmes gem, but there aren't any devel packages available. Any suggestions?

Answer

Tombart picture Tombart · Dec 2, 2014

RedHat, CentOS, Fedora:

yum install libicu-devel

Debian, Ubuntu, Mint:

apt-get install libicu-dev