2013-09-04 65 views
5

Tôi cố gắng để cài đặt giống cải hoang holmes, tuy nhiên, tôi tiếp tục nhận được một lỗi:Không thể cài đặt giống cải hoang holmes đá quý, libicu-devel cài đặt

[[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 

tôi đã được cài đặt libicu-devel.

Cảm ơn

Trả lời

2

Trong bạn ra tôi có thể đọc:

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

Vì vậy, nó tất cả các điểm đến một lỗi. Tôi cho rằng đó là một ý tưởng tốt theo kết quả đầu ra và tạo ra một vấn đề ở đó, giải thích những gì bạn đang cố gắng làm và đưa ra các chi tiết về môi trường của bạn.

2

ruby-devel là mất tích

yum install ruby-devel 

và bạn sẽ được thiết :)

+0

Bạn có nhận thấy lệnh yum được chạy như là người chủ chưa? –

+0

Ok, tôi thấy quan điểm của bạn, tôi không nhận thấy anh ta đang chạy nó như là người chủ. Thậm chí chạy nó với sudo, nó sẽ không thay đổi sự thật rằng anh ta có thể thiếu gói ruby-devel. Vì vậy, để có được quyền này, câu trả lời của tôi có -1 vì sudo? – axil

+0

Xin lỗi, tôi không chú ý đến phần này với ruby-devel. Nghĩ rằng toàn bộ câu trả lời của bạn là 'sudo'. Đã phải chỉnh sửa câu trả lời của bạn để hoàn nguyên phần giới thiệu. –

7

tôi đã có vấn đề chính xác cùng một ngày hôm nay. Đã cố gắng cài đặt gitlab trên một máy fedora sạch. Đối với tôi, một dòng trong /usr/local/share/gems/gems/charlock_holmes-0.6.9.4/ext/charlock_holmes/gem_make.out được trỏ tới mkmf.log, nằm trong cùng thư mục với tệp nhật ký phía trên.

Có nó nói "vá: command not found"

sudo yum install patch

+0

Làm việc cho tôi, cảm ơn. – Jeffrey