在rhel5上安装charlock_holmes时出错

时间:2014-01-17 09:22:01

标签: ruby-on-rails ruby git

我正在尝试部署使用特定gem的rails应用程序,但我无法成功构建它:


            [git@Porta-Git ~]$  gem install charlock_holmes --version '0.6.9.4'
            Building native extensions.  This could take a while...
            ERROR:  Error installing charlock_holmes:
                    ERROR: Failed to build gem native extension.

                /usr/local/bin/ruby extconf.rb
            checking for main() in -licui18n... yes
            checking for main() in -licui18n... yes
            checking for unicode/ucnv.h... yes
              -- tar zxvf file-5.08.tar.gz
              -- ./configure --prefix=/usr/local/lib/ruby/gems/2.0.0/gems/charlock_holmes-0.6.9.4/ext/charlock_holmes/dst/ --disable-shared --enable-static --with-pic
              -- patch -p0 ’ token
            transliterator.cpp:108: error: ‘sink’ was not declared in this scope
            transliterator.cpp:109: error: ‘class icu_3_6::UnicodeString’ has no member named ‘toUTF8’
            make: *** [transliterator.o] Error 1

            make failed, exit code 2

            Gem files will remain installed in /usr/local/lib/ruby/gems/2.0.0/gems/charlock_holmes-0.6.9.4 for inspection.
            Results logged to /usr/local/lib/ruby/gems/2.0.0/extensions/x86_64-linux/2.0.0-static/charlock_holmes-0.6.9.4/gem_make.out

有什么建议吗?

0 个答案:

没有答案