2015-03-02 104 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

相關問題