0 0

Ruby 安装 fast-stemmer -v '1.0.1'时报错, 怎么解决?0

报错信息如下:

F:\software\gitHubs\octopress>gem install fast-stemmer -v '1.0.1'
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing fast-stemmer:
        ERROR: Failed to build gem native extension.

        "C:/Program Files (x86)/ruby-1.9.2/bin/ruby.exe" extconf.rb
creating Makefile

make
Makefile:160: warning: overriding commands for target `C:/Program'
Makefile:153: warning: ignoring old commands for target `C:/Program'
Makefile:160: warning: overriding commands for target `Files'
Makefile:153: warning: ignoring old commands for target `Files'
C:/Program Files (x86)/ruby-1.9.2/bin/ruby -e "puts 'EXPORTS', 'Init_stemmer'"  > stemmer-i386-mingw32.def
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `C:/Program Files (x86)/ruby-1.9.2/bin/ruby -e "puts 'EXPORTS', 'Init_stemmer'"  > stemmer-i386-mingw32.
def'
make: *** [stemmer-i386-mingw32.def] Error 2


Gem files will remain installed in C:/Program Files (x86)/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/fast-stemmer-1.0.1 for inspecti
on.
Results logged to C:/Program Files (x86)/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/fast-stemmer-1.0.1/ext/gem_make.out

F:\software\gitHubs\octopress>



======
请问, 这是怎么回事? 怎么解决?

问题补充:已经解决。 是因为“C:/Program Files (x86)/”里有空格闹的, 现在把Ruby删除了再在别的位置重装后, 没事了。
2012年10月17日 16:46

1个答案 按时间排序 按投票排序

0 0

我安装的是ruby193,在c:\ruby193目录,不在C:/Program Files (x86)/”,但也安装不了gem install fast-stemmer -v '1.0.1' .不知还有没有同学关注这个问题?如何解决呢?

2013年4月02日 23:17

相关推荐

Global site tag (gtag.js) - Google Analytics