Homebrew portable-ruby generates warning messages - ruby

How can we get rid of such ruby warning messages reported when I execute a Homebrew command on MacOS ?
brew upgrade
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/FileUtils.rb:1267: warning: already initialized constant FileUtils::Entry_::S_IF_DOOR
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/fileutils.rb:1267: warning: previous definition of S_IF_DOOR was here
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/FileUtils.rb:1540: warning: already initialized constant FileUtils::Entry_::DIRECTORY_TERM
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/fileutils.rb:1540: warning: previous definition of DIRECTORY_TERM was here
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/FileUtils.rb:1542: warning: already initialized constant FileUtils::Entry_::SYSCASE
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/fileutils.rb:1542: warning: previous definition of SYSCASE was here
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/FileUtils.rb:1595: warning: already initialized constant FileUtils::OPT_TABLE
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/fileutils.rb:1595: warning: previous definition of OPT_TABLE was here
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/FileUtils.rb:1649: warning: already initialized constant FileUtils::LOW_METHODS
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/fileutils.rb:1649: warning: previous definition of LOW_METHODS was here
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/FileUtils.rb:1656: warning: already initialized constant FileUtils::METHODS
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/fileutils.rb:1656: warning: previous definition of METHODS was here

This is the open issue for the camel case warnings.

Related

Error while the first sight generation in Jekyll on Windows

I've just installed Jekyll 3.5.0 on Windows 10 using this instruction.
I've successfully run jekyll new my_blog and my blog folder looks like
kontiky#DESKTOP-GRQ069N:~/my_blog$ ls
404.html about.md _config.yml Gemfile Gemfile.lock index.md _posts vendor
but then I call jekyll build inside my_blog I see these warning and error messages
Deprecation: The 'gems' configuration option has been renamed to 'plugins'. Please update your config file accordingly.
/home/kontiky/my_blog/vendor/bundle/gems/sass-3.4.24/lib/sass/root.rb:6: warning: already initialized constant Sass::ROOT_DIR
/var/lib/gems/2.3.0/gems/sass-3.4.24/lib/sass/root.rb:6: warning: previous definition of ROOT_DIR was here
/home/kontiky/my_blog/vendor/bundle/gems/sass-3.4.24/lib/sass/util.rb:23: warning: already initialized constant Sass::Util::RUBY_VERSION_COMPONENTS
/var/lib/gems/2.3.0/gems/sass-3.4.24/lib/sass/util.rb:23: warning: previous definition of RUBY_VERSION_COMPONENTS was here
/home/kontiky/my_blog/vendor/bundle/gems/sass-3.4.24/lib/sass/util.rb:28: warning: already initialized constant Sass::Util::RUBY_ENGINE
/var/lib/gems/2.3.0/gems/sass-3.4.24/lib/sass/util.rb:28: warning: previous definition of RUBY_ENGINE was here
/home/kontiky/my_blog/vendor/bundle/gems/sass-3.4.24/lib/sass/util.rb:867: warning: already initialized constant Sass::Util::CHARSET_REGEXP
/var/lib/gems/2.3.0/gems/sass-3.4.24/lib/sass/util.rb:867: warning: previous definition of CHARSET_REGEXP was here
/home/kontiky/my_blog/vendor/bundle/gems/sass-3.4.24/lib/sass/util.rb:869: warning: already initialized constant Sass::Util::UTF_8_BOM
/var/lib/gems/2.3.0/gems/sass-3.4.24/lib/sass/util.rb:869: warning: previous definition of UTF_8_BOM was here
/home/kontiky/my_blog/vendor/bundle/gems/sass-3.4.24/lib/sass/util.rb:870: warning: already initialized constant Sass::Util::UTF_16BE_BOM
/var/lib/gems/2.3.0/gems/sass-3.4.24/lib/sass/util.rb:870: warning: previous definition of UTF_16BE_BOM was here
/home/kontiky/my_blog/vendor/bundle/gems/sass-3.4.24/lib/sass/util.rb:871: warning: already initialized constant Sass::Util::UTF_16LE_BOM
/var/lib/gems/2.3.0/gems/sass-3.4.24/lib/sass/util.rb:871: warning: previous definition of UTF_16LE_BOM was here
/home/kontiky/my_blog/vendor/bundle/gems/sass-3.4.24/lib/sass/util.rb:1151: warning: already initialized constant Sass::Util::VLQ_BASE_SHIFT
/var/lib/gems/2.3.0/gems/sass-3.4.24/lib/sass/util.rb:1151: warning: previous definition of VLQ_BASE_SHIFT was here
/home/kontiky/my_blog/vendor/bundle/gems/sass-3.4.24/lib/sass/util.rb:1152: warning: already initialized constant Sass::Util::VLQ_BASE
/var/lib/gems/2.3.0/gems/sass-3.4.24/lib/sass/util.rb:1152: warning: previous definition of VLQ_BASE was here
/home/kontiky/my_blog/vendor/bundle/gems/sass-3.4.24/lib/sass/util.rb:1153: warning: already initialized constant Sass::Util::VLQ_BASE_MASK
/var/lib/gems/2.3.0/gems/sass-3.4.24/lib/sass/util.rb:1153: warning: previous definition of VLQ_BASE_MASK was here
/home/kontiky/my_blog/vendor/bundle/gems/sass-3.4.24/lib/sass/util.rb:1154: warning: already initialized constant Sass::Util::VLQ_CONTINUATION_BIT
/var/lib/gems/2.3.0/gems/sass-3.4.24/lib/sass/util.rb:1154: warning: previous definition of VLQ_CONTINUATION_BIT was here
/home/kontiky/my_blog/vendor/bundle/gems/sass-3.4.24/lib/sass/util.rb:1156: warning: already initialized constant Sass::Util::BASE64_DIGITS
/var/lib/gems/2.3.0/gems/sass-3.4.24/lib/sass/util.rb:1156: warning: previous definition of BASE64_DIGITS was here
/home/kontiky/my_blog/vendor/bundle/gems/sass-3.4.24/lib/sass/util.rb:1157: warning: already initialized constant Sass::Util::BASE64_DIGIT_MAP
/var/lib/gems/2.3.0/gems/sass-3.4.24/lib/sass/util.rb:1157: warning: previous definition of BASE64_DIGIT_MAP was here
/home/kontiky/my_blog/vendor/bundle/gems/sass-3.4.24/lib/sass/util.rb:1193: warning: already initialized constant Sass::Util::URI_ESCAPE
/var/lib/gems/2.3.0/gems/sass-3.4.24/lib/sass/util.rb:1193: warning: previous definition of URI_ESCAPE was here
/home/kontiky/my_blog/vendor/bundle/gems/sass-3.4.24/lib/sass/util.rb:1237: warning: already initialized constant Sass::Util::ATOMIC_WRITE_MUTEX
/var/lib/gems/2.3.0/gems/sass-3.4.24/lib/sass/util.rb:1237: warning: previous definition of ATOMIC_WRITE_MUTEX was here
jekyll 3.5.0 | Error: superclass mismatch for class Mapping
Could you, please, help me avoid these warnings and errors?
I encountered the same issue and I finally decided to install Ruby on Windows without Bash On Ubuntu from this installer: https://rubyinstaller.org/downloads/
After that, I installed jekyll & bundler and, to make jekyll command-line script work, I had to execute this via bundle:
$ bundle exec jekyll serve --watch

Warning: enumeration value ‘BUILT_IN_CILK_SYNC’ not handled in switch [-Wswitch]

I'm trying to install gcc on cygwyn using this tutorial. After this step $ make -j4 I'm facing lots of warnings:
^
../../gcc-4.9.2/gcc/asan.c:2012:11: warning: enumeration value ‘BUILT_IN_ACOS’ not handled in switch [-Wswitch]
../../gcc-4.9.2/gcc/asan.c:2012:11: warning: enumeration value ‘BUILT_IN_ACOSF’ not handled in switch [-Wswitch]
../../gcc-4.9.2/gcc/asan.c:2012:11: warning: enumeration value ‘BUILT_IN_ACOSH’ not handled in switch [-Wswitch]
../../gcc-4.9.2/gcc/asan.c:2012:11: warning: enumeration value ‘BUILT_IN_ACOSHF’ not handled in switch [-Wswitch]
../../gcc-4.9.2/gcc/asan.c:2012:11: warning: enumeration value ‘BUILT_IN_ACOSHL’ not handled in switch [-Wswitch]
Will they cause any problem? What are these?
the current gcc on cygwin is 5.4.0. You are wasting time to recompile 4.9.2 old version with 5.4.0 as compiler. The tutorial is of course obsolete – matzeri

Mailcatcher Error: ~~> ERROR: Something's using port 1025. Are you already running MailCatcher?

I have installed the gem mailcatcher. And when I want to run the mailcatcher I have this error message:
$ mailcatcher
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::BASE
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of BASE was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::EXCEPTION_ALL
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of EXCEPTION_ALL was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::EXCEPTION_NaN
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of EXCEPTION_NaN was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::EXCEPTION_INFINITY
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of EXCEPTION_INFINITY was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::EXCEPTION_UNDERFLOW
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of EXCEPTION_UNDERFLOW was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::EXCEPTION_OVERFLOW
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of EXCEPTION_OVERFLOW was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::EXCEPTION_ZERODIVIDE
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of EXCEPTION_ZERODIVIDE was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::ROUND_MODE
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of ROUND_MODE was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::ROUND_UP
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of ROUND_UP was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::ROUND_DOWN
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of ROUND_DOWN was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::ROUND_HALF_UP
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of ROUND_HALF_UP was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::ROUND_HALF_DOWN
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of ROUND_HALF_DOWN was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::ROUND_CEILING
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of ROUND_CEILING was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::ROUND_FLOOR
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of ROUND_FLOOR was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::ROUND_HALF_EVEN
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of ROUND_HALF_EVEN was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::SIGN_NaN
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of SIGN_NaN was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::SIGN_POSITIVE_ZERO
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of SIGN_POSITIVE_ZERO was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::SIGN_NEGATIVE_ZERO
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of SIGN_NEGATIVE_ZERO was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::SIGN_POSITIVE_FINITE
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of SIGN_POSITIVE_FINITE was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::SIGN_NEGATIVE_FINITE
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of SIGN_NEGATIVE_FINITE was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::SIGN_POSITIVE_INFINITE
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of SIGN_POSITIVE_INFINITE was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::SIGN_NEGATIVE_INFINITE
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of SIGN_NEGATIVE_INFINITE was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::INFINITY
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of INFINITY was here
/Users/romenigld/.rvm/gems/ruby-2.2.3#global/extensions/x86_64-darwin-14/2.2.0-static/bigdecimal-1.2.7/bigdecimal.bundle: warning: already initialized constant BigDecimal::NAN
/Users/romenigld/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121: warning: previous definition of NAN was here
Starting MailCatcher
~~> ERROR: Something's using port 1025. Are you already running MailCatcher?
Then when I try to use the http://localhost:1080/ shows me the app mailcatcher.
But what I need to do with the application for don't show anymore this error?
Something seems to be running on that port. It can be another instance of mailcatcher, or some other process.
On most *nix systems you can use the following command to search for a process occupying a particular port:
lsof -i :PORT
For example:
lsof -i :1025
The result will contain a PID (Process ID). You can use this to kill the offending process.
kill -9 SOME_PID
Example:
kill -9 32487

Jekyll JSON errors in commandline?

I tried to look this up but to no avail. When running Jekyll with "Jekyll serve" I'm getting the following messages in my commandline after which Jekyll runs fine.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/version.rb:3: warning: already initialized constant JSON::VERSION
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/version.rb:3: warning: previous definition of VERSION was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/version.rb:4: warning: already initialized constant JSON::VERSION_ARRAY
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/version.rb:4: warning: previous definition of VERSION_ARRAY was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/version.rb:5: warning: already initialized constant JSON::VERSION_MAJOR
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/version.rb:5: warning: previous definition of VERSION_MAJOR was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/version.rb:6: warning: already initialized constant JSON::VERSION_MINOR
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/version.rb:6: warning: previous definition of VERSION_MINOR was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/version.rb:7: warning: already initialized constant JSON::VERSION_BUILD
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/version.rb:7: warning: previous definition of VERSION_BUILD was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:99: warning: already initialized constant JSON::NaN
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/common.rb:99: warning: previous definition of NaN was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:101: warning: already initialized constant JSON::Infinity
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/common.rb:101: warning: previous definition of Infinity was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:103: warning: already initialized constant JSON::MinusInfinity
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/common.rb:103: warning: previous definition of MinusInfinity was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:128: warning: already initialized constant JSON::UnparserError
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/common.rb:128: warning: previous definition of UnparserError was here
Jekyll runs fine though! But I guess it couldn't harm to fix this. It probably has something to do with versions of JSON not matching Jekylls dependencies?
I fixed it by updating all my gems.
gem install rubygems-update
update_rubygems
gem update --system

install jekyll in windows7

env: windows 7-64bit DevKit-mingw64-32-4.7.2-20130224-1151-sfx ruby200-64
I already install devkit and ruby. then I run gem install jekyll
looks like something wrong in ruby.h
it has some errors like follows:
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...
Any assistance would be helpful.thx
Your Ruby is Ruby200-x64, which is 64-bit, so please download the 64-bit DevKit to match your Ruby.
The latest 64-bit DevKit is DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe, which can be found here, while currently yours is 32-bit DevKit-mingw64-32-4.7.2-20130224-1151-sfx.
Did you notice the difference? Yours is mingw64-32, but you need mingw64-64.
Another issue I encountered here is using Ruby2.00 which seems not an idea version.
The version worked for me is:
Ruby 1.9.3-p448
DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
Basically it's just the version issue, other than that , just follow articles you can search around.
Details about where to get these packages:Issue installing jekyll on windows

Resources