在centos上安装charlock_holmes时出错

时间:2018-06-06 21:29:57

标签: ruby-on-rails ruby centos

我正在尝试在centos上安装charlock_holmes gem,但我一直在

Installing charlock_holmes 0.7.6 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/usr/local/rvm/gems/ruby-2.2.5/gems/charlock_holmes- 
0.7.6/ext/charlock_holmes
/usr/local/rvm/rubies/ruby-2.2.5/bin/ruby -r ./siteconf20180607-1811- 
1cbsady.rb
 extconf.rb --with-icu-dir=C:UsersmadprogDesktopicusourcesdistusrlocal
--with-icui18nlib=icuin --with-icudatalib=icudt
checking for main() in -licuin... no
which: no brew in
(/usr/local/rvm/gems/ruby-2.2.5/bin:/usr/local/rvm/gems/ruby- 
2.2.5@global/bin:/usr/local/rvm/rubies/ruby- 
2.2.5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/
rvm/bin:/root/bin)
checking for main() in -licuin... 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.

To see why this extension failed to compile, please check the mkmf.log which 
can be found here:

/usr/local/rvm/gems/ruby-2.2.5/extensions/x86_64- 
 linux/2.2.0/charlock_holmes-0.7.6/mkmf.log

extconf failed, exit code 1

An error occurred while installing charlock_holmes (0.7.6), and Bundler
cannot continue.

In Gemfile:
copyright-header was resolved to 1.0.22, which depends on
github-linguist was resolved to 6.2.0, which depends on
  charlock_holmes

我也尝试过安装libicu-dev,这就是我得到的     没有包libicu-dev可用。     错误:无事可做 请帮助,谢谢。

0 个答案:

没有答案