An error occurred while setting charlock_holmes libicu

I try to install Gitlab after this install script , but I ran into a problem when the charlock_holmes gem fails to install. I am not familiar with Ruby. My charlock_holmes-0.6.8 gem_make.out 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 installed the libicu.x86_64 package (and also tried libicu.i686 when I ran into problems but uninstalled it after it didn’t work).

The libicu package does not seem to include the files needed for the charlock_holmes gem , but there are no devel packages available. Any suggestions?

+7
source share
5 answers

Same problem here. Installed libicu-devel-4.2.1-9.1.el6_2.x86_64.rpm from the red hat, and the installation of charlock_holmes succeeded. From https://rhn.redhat.com/rhn/software/packages/details/Overview.do?pid=680099 To do this, you will need a Red Hat Network login. The note I read says that it is part of the “optional” packages.

+5
source

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 eventually allowed the installation of charlock_holmes

+6
source

RedHat, CentOS, Fedora:

yum install libicu-devel

Debian, Ubuntu, Mint:

apt-get install libicu-dev

+6
source

Using yum install libicu-devel, I was able to set charlock_holmes.

0
source

I had the same problem when deploying to heroku, my solution was to invert buildpacks:

At first:

  https://github.com/heroku/heroku-buildpack-apt 

Then:

  heroku/ruby 

I hope I helped!
Francois

0
source

All Articles