8

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?

4

5 回答 5

9

红帽、CentOS、Fedora:

yum install libicu-devel

Debian,Ubuntu,薄荷:

apt-get install libicu-dev

于 2014-12-02T09:16:22.430 回答
6

我遇到了同样的问题(使用与 RedHat EL 6 相同的 CentOS 6)。我使用“yum install libicu-devel”,它安装了 libicu-devel-4.2.1-9.1.el6_2.x86_64.rpm 并最终允许安装 charlock_holmes

于 2013-01-28T08:59:49.503 回答
6

同样的问题。从 red hat 安装 libicu-devel-4.2.1-9.1.el6_2.x86_64.rpm 并成功安装 charlock_holmes。从https://rhn.redhat.com/rhn/software/packages/details/Overview.do?pid=680099 您需要登录红帽网络才能获得它。注意我读到它是“可选”包的一部分。

于 2012-10-26T19:17:45.077 回答
0

使用 yum install libicu-devel 为我工作,然后我可以安装 charlock_holmes。

于 2013-08-07T18:01:50.667 回答
0

部署到heroku时我遇到了完全相同的问题,我的解决方案是反转构建包:

第一的:

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

然后:

    heroku/ruby   

希望我有所帮助!
弗朗索瓦

于 2016-11-22T10:36:30.757 回答