2015-03-02 103 views
-1

我试图在windows 8上安装jekyll,但由于stemmer而失败。请给我一个很好的解决方案。gem install jekyll由于stemmer而在windows 8上失败

这是我的配置配置。

  • *的Windows 8专业版64位
  • Intel奔腾双1.6GHz的
  • 2GB内存*

和红宝石和宝石的版本。

$ruby -v 
ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32] 

$ gem --version 
2.4.6 

即使我已经安装了Ruby的devkit

的devkit-mingw64-64-4.7.2-20130224-1432-SFX

而这就是即时得到,而安装化身。

$ gem install jekyll 
Temporarily enhancing PATH to include DevKit... 
Building native extensions. This could take a while... 
ERROR: Error installing jekyll: 
     ERROR: Failed to build gem native extension. 

    c:/Ruby21/bin/ruby.exe -r ./siteconf20150302-1732-9b3i52.rb extconf.rb 
creating Makefile 

make "DESTDIR=" clean 

make "DESTDIR=" 
generating stemmer-i386-mingw32.def 
compiling porter.c 
porter.c: In function 'step1ab': 
porter.c:233:4: warning: passing argument 2 of 'ends' discards 'const' qualifier 
from pointer target type [enabled by default] 
porter.c:182:12: note: expected 'char *' but argument is of type 'const char *' 
porter.c:234:7: warning: passing argument 2 of 'ends' discards 'const' qualifier 
from pointer target type [enabled by default] 
porter.c:182:12: note: expected 'char *' but argument is of type 'const char *' 
. 
. 
. 
. 
. 
. 
porter.c:238:4: warning: passing argument 2 of 'ends' discards 'const' qualifier 
from pointer target type [enabled by default] 
porter.c:182:12: note: expected 'char *' but argument is of type 'const char *' 

compiling porter_wrap.c 
In file included from c:/Ruby21/include/ruby-2.1.0/ruby.h:33:0, 
       from porter_wrap.c:1: 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:109:14: error: size of array 'ruby_chec 
k_sizeof_voidp' is negative 
In file included from c:/Ruby21/include/ruby-2.1.0/ruby.h:33:0, 
       from porter_wrap.c:1: 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_obj_wb_unprotect': 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1234:9: warning: cast to pointer from i 
nteger of different size [-Wint-to-pointer-cast] 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1235:6: warning: cast to pointer from i 
nteger of different size [-Wint-to-pointer-cast] 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1238:2: warning: cast to pointer from i 
nteger of different size [-Wint-to-pointer-cast] 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_obj_written': 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1253:9: warning: cast to pointer from i 
nteger of different size [-Wint-to-pointer-cast] 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_num2char_inline': 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1324:35: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast] 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1324:35: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast] 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1324:35: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast] 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1325:9: warning: cast to pointer from i 
nteger of different size [-Wint-to-pointer-cast] 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1325:9: warning: cast to pointer from i 
nteger of different size [-Wint-to-pointer-cast] 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1325:9: warning: cast to pointer from i 
nteger of different size [-Wint-to-pointer-cast] 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_class_of': 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1642:12: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast] 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_type': 
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1659:12: warning: cast to pointer from 
integer of different size [-Wint-to-pointer-cast] 
porter_wrap.c: In function 'stem_word': 
porter_wrap.c:26:16: warning: cast to pointer from integer of different size [-W 
int-to-pointer-cast] 
porter_wrap.c:26:16: warning: cast to pointer from integer of different size [-W 

int-to-pointer-cast] 
porter_wrap.c:28:7: warning: cast to pointer from integer of different size [-Wi 

nt-to-pointer-cast] 
porter_wrap.c:28:7: warning: cast to pointer from integer of different size [-Wi 
nt-to-pointer-cast] 
porter_wrap.c:20:17: warning: unused variable 'i' [-Wunused-variable] 
make: *** [porter_wrap.o] Error 1 

make failed, exit code 2 

Gem files will remain installed in c:/Ruby21/lib/ruby/gems/2.1.0/gems/fast-stemm 
er-1.0.2 for inspection. 
Results logged to c:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/fas 
t-stemmer-1.0.2/gem_make.out 

回答

0

Windows未正式杰基尔支持,并且需要以运行一些调整。

查看Jekyll的helpful guide即可开始使用。

+0

已解决问题。 Jekyll安装在我的comp。这是Ruby和DevKit安装不匹配版本的错误。 需要补充在此处阅读适当证书 - [链接](https://gist.github.com/luislavena/f064211759ee0f806c88) - _____ - @RobWagner:不知道什么不要把你的意见,以及因为如果你有常识,根本就不要投弃权票。 – kva 2015-03-02 17:20:19

+0

我没有downvote你的问题,但没关系。 – 2015-03-02 19:26:28

相关问题