如何在Windows XP中安装acts_as_ferret?

时间:2011-04-08 21:18:01

标签: gem acts-as-ferret

我无法在Windows XP中安装Acts As Ferret。我的开发环境是,

  • RubyGems - 1.7.2
  • Ruby - 1.8.7
  • devkit - 4.5.1

当我运行命令gem install acts_as_ferret时,我收到以下错误。任何线索?

C:\TEMP\test\devkit>gem install acts_as_ferret

Building native extensions.  This could take a while...
ERROR:  Error installing acts_as_ferret:
        ERROR: Failed to build gem native extension.

        C:/Ruby187/bin/ruby.exe extconf.rb
creating Makefile

make
gcc -I. -I/C/Ruby187/lib/ruby/1.8/i386-mingw32 -I/C/Ruby187/lib/ruby/1.8/i386-mingw32 -  I.   -g -O2 -DFD_SETSIZE=256   -W
all -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500  -c fs_store.c
fs_store.c: In function 'fs_store_new':
fs_store.c:431:17: warning: unused variable 'stt'
gcc -I. -I/C/Ruby187/lib/ruby/1.8/i386-mingw32 -I/C/Ruby187/lib/ruby/1.8/i386-mingw32 -  I.   -g -O2 -DFD_SETSIZE=256   -W
all -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500  -c global.c
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 C:/Ruby187/lib/ruby/gems/1.8/gems/jk-ferret-0.11.8.3   for inspection.
Results logged to C:/Ruby187/lib/ruby/gems/1.8/gems/jk-ferret-0.11.8.3/ext/gem_make.out

1 个答案:

答案 0 :(得分:0)

从我的研究中,acts_as_ferret是错误的。它在安装,运行和破坏索引方面存在问题。您应该考虑转移到Sphinx