簡體   English   中英

嘗試安裝寶石貂以進行寶石治療,但無法構建本機擴展

[英]Trying to install gem ferret for gem treat but cannot build native extensions

我通常可以使用BitNami Rubystack Ruby 1.9.3p448在Windows 8系統上安裝本機擴展。 Rubystack集成了DevKit。 但是,我無法建立雪貂和其他對待依賴項。 錯誤看起來像編譯錯誤,而不是錯誤。

當我在這種情況下指定雪貂時,請款待的一些寶石正好遇到了這些相同的錯誤。 因此,這一定是系統性的問題。 實際上,我找到了大約在2008年GNUstep中發生的與“ svn中已修復”相同的問題。 至此,我無法確定該修復程序。 對話在這里發生。

在雪貂上,我嘗試了0.11.8.5、0.11.8.4甚至0.11.6版本,它們基本上都獲得了與此處所列相同的錯誤。 我一直在尋找像sdsykes-ferret這樣的替代品,但據我所知,目前似乎不支持。 當前的雪貂活動叉似乎是HERE 同樣,該問題是系統性的,影響了多個治療先決條件。

由於這些都是gem Treat NLP的依賴項,因此我真的不想考慮非PnP替代方案,尤其是因為其中幾種正在打破。 我必須一一穿過它們才能起床。 Treat嘗試動態安裝它們,但也不鎖定版本。 我希望它能起作用...

我最新的雪貂安裝嘗試如下。 這只是幾次嘗試的最新迭代。 在SO中進行搜索時發現了類似的問題,這些問題已經很老了,我已經嘗試過了。

D:\BitNami\rubystack-1.9.3-12>call gem install ferret --version "0.11.8.5" --platform=mswin32 -- --with-ruby-include=D:\
Users\Richard\Downloads\Ruby\ruby-1.9.3-p448
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-ruby-include=D:\Users\Richard\Downloads\Ruby\ruby-1.9.3-p448'
This could take a while...
ERROR:  Error installing ferret:
        ERROR: Failed to build gem native extension.

    D:/BitNami/rubystack-1.9.3-12/ruby/bin/ruby.exe extconf.rb --with-ruby-include=D:\Users\Richard\Downloads\Ruby\ruby-
1.9.3-p448
creating Makefile

make
generating ferret_ext-i386-mingw32.def
compiling analysis.c
compiling array.c
compiling bitvector.c
bitvector.c: In function 'frt_bv_eq':
bitvector.c:54:5: warning: ISO C90 forbids mixed declarations and code
compiling BZLIB_blocksort.c
compiling BZLIB_bzlib.c
compiling BZLIB_compress.c
compiling BZLIB_crctable.c
compiling BZLIB_decompress.c
compiling BZLIB_huffman.c
compiling BZLIB_randtable.c
compiling compound_io.c
compound_io.c: In function 'cmpdi_read_i':
compound_io.c:136:9: warning: unknown conversion type character 'l' in format
compound_io.c:136:9: warning: unknown conversion type character 'l' in format
compound_io.c:136:9: warning: too many arguments for format
compound_io.c: In function 'cw_copy_file':
compound_io.c:325:9: warning: unknown conversion type character 'l' in format
compound_io.c:325:9: warning: too many arguments for format
compound_io.c:334:9: warning: unknown conversion type character 'l' in format
compound_io.c:334:9: warning: unknown conversion type character 'l' in format
compound_io.c:334:9: warning: too many arguments for format
compiling document.c
compiling except.c
except.c:23:37: warning: initialization discards qualifiers from pointer target type
except.c:24:29: warning: initialization discards qualifiers from pointer target type
compiling ferret.c
compiling field_index.c
field_index.c: In function 'string_handle_term':
field_index.c:237:23: warning: operation on 'index->values' may be undefined
compiling filter.c
compiling fs_store.c
fs_store.c: In function 'fso_seek_i':
fs_store.c:252:9: warning: unknown conversion type character 'l' in format
fs_store.c:252:9: warning: format '%s' expects type 'char *', but argument 4 has type 'long long int'
fs_store.c:252:9: warning: too many arguments for format
fs_store.c: In function 'fsi_seek_i':
fs_store.c:306:9: warning: unknown conversion type character 'l' in format
fs_store.c:306:9: warning: format '%s' expects type 'char *', but argument 4 has type 'long long int'
fs_store.c:306:9: warning: too many arguments for format
fs_store.c: In function 'fsi_length_i':
fs_store.c:322:5: warning: implicit declaration of function 'fstati64'
fs_store.c: In function 'fs_store_new':
fs_store.c:431:17: warning: unused variable 'stt'
compiling global.c
global.c: In function 'frt_vstrfmt':
global.c:190:23: warning: assignment discards qualifiers from pointer target type
global.c: In function 'signal_to_string':
global.c:412:14: error: 'SIGBUS' undeclared (first use in this function)
global.c:412:14: note: each undeclared identifier is reported only once for each function it appears in
global.c: In function 'frt_init':
global.c:436:22: error: storage size of 'action' isn't known
global.c:443:5: warning: implicit declaration of function 'sigemptyset'
global.c:446:5: error: storage size of '__old' isn't known
global.c:446:5: warning: implicit declaration of function 'sigaction'
global.c:446:5: warning: unused variable '__old'
global.c:447:5: error: storage size of '__old' isn't known
global.c:447:5: warning: unused variable '__old'
global.c:448:5: error: storage size of '__old' isn't known
global.c:448:5: warning: unused variable '__old'
global.c:449:5: error: storage size of '__old' isn't known
global.c:449:5: error: 'SIGBUS' undeclared (first use in this function)
global.c:449:5: warning: unused variable '__old'
global.c:450:5: error: storage size of '__old' isn't known
global.c:450:5: warning: unused variable '__old'
global.c:436:22: warning: unused variable 'action'
make: *** [global.o] Error 1


Gem files will remain installed in D:/BitNami/rubystack-1.9.3-12/ruby/lib/ruby/gems/1.9.1/gems/ferret-0.11.8.5 for inspe
ction.
Results logged to D:/BitNami/rubystack-1.9.3-12/ruby/lib/ruby/gems/1.9.1/gems/ferret-0.11.8.5/ext/gem_make.out

D:\BitNami\rubystack-1.9.3-12>

這個噩夢有解決辦法嗎?

由於安裝必備的寶石看似無法解決的問題,我放棄了治療,而轉向其他選擇。 現在,我正在研究open-nlp,因為它是OpenNLP項目的當前Ruby包裝器。 我更喜歡NLTK,因為它是黃金標准,但是到目前為止我還沒有找到Ruby包裝器。

這只是在Windows,IFIAK下進行處理的一個問題,即使如此,也僅出於先決條件。 我什么也沒說過在其他環境中治療不好。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM