簡體   English   中英

在Windows7中安裝jekyll

[英]install jekyll in windows7

信封:Windows 7-64bit DevKit-mingw64-32-4.7.2-20130224-1151-sfx ruby​​200-64

我已經安裝了devkit和ruby。 然后我運行gem install jekyll

在ruby.h中看起來好像有問題

它有一些錯誤,如下所示:

ERROR:  Error installing jekyll:
ERROR: Failed to build gem native extension.

d:/Ruby200-x64/bin/ruby.exe extconf.rb
creating Makefile

make "DESTDIR="
generating stemmer-x64-mingw32.def
compiling porter.c
porter.c: In function 'step1ab':
porter.c:233:4: warning: passing argument 2 of 'ends' discards qualifiers from p  
...
..
compiling porter_wrap.c
In file included from d:/Ruby200-x64/include/ruby-2.0.0/ruby.h:33:0,from porter_wrap.c:1:
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:125:14: error: size of array 'ruby                                                                                                                      _    check_sizeof_voidp' is negative
In file included from d:/Ruby200-x64/include/ruby-2.0.0/ruby.h:33:0,
             from porter_wrap.c:1:
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_float_value':
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:785:10: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_num2char_inline':
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1214:35: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1214:35: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1214:35: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1215:9: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1215:9: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1215:9: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_class_of':
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1515:12: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_type':
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1532:12: warning: cast to pointer from integer of different size
porter_wrap.c: In function 'stem_word':
porter_wrap.c:26:16: warning: cast to pointer from integer of different size
porter_wrap.c:26:16: warning: cast to pointer from integer of different size
porter_wrap.c:26:16: warning: cast to pointer from integer of different size
porter_wrap.c:27:16: warning: cast to pointer from integer of different size
porter_wrap.c:27:16: warning: cast to pointer from integer of different size
porter_wrap.c:27:16: warning: cast to pointer from integer of different size
porter_wrap.c:27:34: warning: cast to pointer from integer of different size
porter_wrap.c:27:34: warning: cast to pointer from integer of different size
porter_wrap.c:27:34: warning: cast to pointer from integer of different size
porter_wrap.c:28:7: warning: cast to pointer from integer of different size
porter_wrap.c:28:7: warning: cast to pointer from integer of different size
porter_wrap.c:28:7: warning: cast to pointer from integer of different size
porter_wrap.c:20:17: warning: unused variable 'i'
make: *** [porter_wrap.o] Error 1


Gem files will remain installed in d:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to d:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/fast-stemmer-1.0.2/ext/gem_make.out
Successfully installed liquid-2.5.1
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while... 

任何幫助都會有所幫助。

您的Ruby是64位的Ruby200-x64,因此請下載與您的Ruby匹配的64位DevKit。

最新的64位DevKit是DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe ,可在此處找到,而當前的是32位DevKit-mingw64-32-4.7.2-20130224-1151-sfx

您注意到差異了嗎? 您的是mingw64-32 ,但您需要mingw64-64

我在這里遇到的另一個問題是使用Ruby2.00,這似乎不是一個想法版本。 對我有用的版本是:

  1. Ruby 1.9.3-p448
  2. 的devkit-TDM-32-4.5.2-20111229-1559-sfx.exe

基本上,這只是版本問題,除此之外,只需關注您可以搜索的文章即可。

有關從何處獲取這些軟件包的詳細信息: 在Windows上安裝jekyll時出現問題

暫無
暫無

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

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