Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An error occured while installing charlock_holmes libicu

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?

like image 540
E-rich Avatar asked Oct 24 '12 16:10

E-rich


3 Answers

RedHat, CentOS, Fedora:

yum install libicu-devel

Debian, Ubuntu, Mint:

apt-get install libicu-dev

like image 173
Tombart Avatar answered Nov 11 '22 16:11

Tombart


Same Problem here. Installed libicu-devel-4.2.1-9.1.el6_2.x86_64.rpm from red hat and the install of charlock_holmes succeeded. From https://rhn.redhat.com/rhn/software/packages/details/Overview.do?pid=680099 You will need a Red Hat Network login to get it though. Note I read says it is part of the "optional" packages.

like image 45
Don Carter Avatar answered Nov 11 '22 17:11

Don Carter


I had the same problem (using CentOS 6, which is identical to RedHat EL 6). I used "yum install libicu-devel", which installed libicu-devel-4.2.1-9.1.el6_2.x86_64.rpm and ultimately allowed charlock_holmes to be installed

like image 6
curious_george Avatar answered Nov 11 '22 16:11

curious_george