2013-09-04 4 views
5

Ich versuche charlock holmes zu installieren, doch ich erhalte einen Fehler installieren:Kann nicht charlock holmes Juwel, libicu-devel installiert

[[email protected] gitlab]# 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/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/share/gems/gems/charlock_holmes-0.6.9.4/ext/charlock_holmes/dst/ --disable-shared --enable-static --with-pic 
    -- patch -p0 < ../file-soft-check.patch 
*** 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}/lib64 
    --with-make-prog 
    --without-make-prog 
    --srcdir=. 
    --curdir 
    --ruby=/usr/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}/ 
    --with-icui18nlib 
    --without-icui18nlib 
    --with-icui18nlib 
    --without-icui18nlib 
extconf.rb:7:in `sys': patch -p0 < ../file-soft-check.patch failed, please report issue on http://github.com/brianmario/charlock_holmes (RuntimeError) 
    from extconf.rb:61:in `block (2 levels) in <main>' 
    from extconf.rb:59:in `chdir' 
    from extconf.rb:59:in `block in <main>' 
    from extconf.rb:55:in `chdir' 
    from extconf.rb:55:in `<main>' 


Gem files will remain installed in /usr/local/share/gems/gems/charlock_holmes-0.6.9.4 for inspection. 
Results logged to /usr/local/share/gems/gems/charlock_holmes-0.6.9.4/ext/charlock_holmes/gem_make.out 

ich bereits installiert libicu-devel.

Dank

Antwort

2

In Ihrem Ausgang ich lesen kann:

extconf.rb:7:in `sys': patch -p0 < ../file-soft-check.patch failed, please report issue on http://github.com/brianmario/charlock_holmes (RuntimeError)

So ist es alle Punkte auf einen Fehler. Ich nehme an, es ist eine gute Idee, der Ausgabe zu folgen und dort ein Problem zu erzeugen, das erklärt, was Sie zu tun versuchen, und Details Ihrer Umgebung zu geben.

2

ruby-devel ist

fehlt
yum install ruby-devel 

und Sie werden eingestellt werden :)

+0

Haben Sie den yum Befehl als root bereits ausgeführt wird? –

+0

Ok, ich sehe deinen Punkt, ich habe nicht bemerkt, dass er dies als root ausgeführt hat. Selbst wenn dies mit sudo ausgeführt wird, ändert dies nichts an der Tatsache, dass ihm das Ruby-devel-Paket fehlt. Um das richtig zu machen, bekam meine Antwort -1 wegen Sudo? – axil

+0

Sorry, ich habe den Teil mit ruby-devel nicht bemerkt. Dachte der ganze Punkt deiner Antwort ist das 'Sudo'. Musste deine Antwort bearbeiten, um den Downvote rückgängig zu machen. –

7

ich heute genau das gleiche Problem hatte. Versucht, Gitlab auf einer sauberen Fedora-Maschine zu installieren. Für mich zeigte eine Zeile in /usr/local/share/gems/gems/charlock_holmes-0.6.9.4/ext/charlock_holmes/gem_make.out auf mkmf.log, das sich im selben Verzeichnis wie die obige Protokolldatei befindet.

Es sagte, es „Patch: Befehl nicht gefunden“

sudo yum install patch

+0

Arbeitete für mich, danke. – Jeffrey

Verwandte Themen