gitlab - 安装 charlock_holmes 时出错 : Error installing GITLAB

标签 gitlab

我正在尝试安装 GITLAB。我在执行“sudo gem install charlock_holmes --version '0.6.9'”时遇到此错误(第 Install Gems 部分)

GEOGIT:/geogit/Administrative_Tools # sudo gem install charlock_holmes --version '0.6.9'
Building native extensions.  This could take a while...
ERROR:  Error installing charlock_holmes:
        ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9 extconf.rb
checking for main() in -licui18n... no
which: no brew in (/usr/sbin:/bin:/usr/bin:/sbin)
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}/
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/bin/ruby1.9
        --with-icu-dir
        --without-icu-dir
        --with-icu-include
        --without-icu-include=${icu-dir}/include
        --with-icu-lib
        --without-icu-lib=${icu-dir}/
        --with-icui18nlib
        --without-icui18nlib
        --with-icui18nlib
        --without-icui18nlib

Gem files will remain installed in /usr/lib64/ruby/gems/1.9.1/gems/charlock_holmes-0.6.9 for inspection.
Results logged to /usr/lib64/ruby/gems/1.9.1/gems/charlock_holmes-0.6.9/ext/charlock_holmes/gem_make.out

有人可以帮我调试这些日志和错误吗?

最佳答案

这看起来像issue 1952

It was actually weirdness with the way my ubuntu VPS is commissioned. Mine did not come with a C compiler or libdev obviously.

The problem fix I found was to install libdev first, then the GCC
Then apt-get install libicu-dev.

2015 年更新:其他评论包括:

yum install libicu-devel worked for me

You just need to make sure "patch" is installed (yum install patch) then it should work

关于gitlab - 安装 charlock_holmes 时出错 : Error installing GITLAB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15553792/

相关文章:

docker - Gitlab CI 需要 2 分钟更新

gitlab - gitlab团队和gitlab组有什么区别?

GitLab CI/CD 管道,部署到 Windows Server

git - gitlab-runner 或 Docker 是否默认缓存/builds 目录?

redmine - Gitlab - 更新配置以与 redmine 一起使用并重新部署

git - 如何确定 git 提交是否跳过了 pre-hook 检查?

Gitolite 在本地主机上询问 git ssh 密码

gitlab - 是否有任何自动方法来更新父 git repo 以指向其子模块的最新提交?

git - 使用 SSH 或 HTTPS 将 Gitlab 项目克隆到 Google Colab 实例

gitlab - 从 gitlab-runner 容器连接到 docker 容器的问题