Hitimes require an error when starting a jekyll service on windows 8.1

I try to run jekyll on my local machine running Windows 8.1, I have Ruby installed and running, but every time I run the jekyll serve command, I get an error:

 C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- hitimes/hitimes (LoadError) 

I tried to set hits manually through gem install hitimes and it works fine if I open irb , I can require 'hitimes' without any problems, it just doesn't work for jekyll.

My gem environment :

 RubyGems Environment: - RUBYGEMS VERSION: 2.4.5 - RUBY VERSION: 2.2.1 (2015-02-26 patchlevel 85) [i386-mingw32] - INSTALLATION DIRECTORY: C:/Ruby22/lib/ruby/gems/2.2.0 - RUBY EXECUTABLE: C:/Ruby22/bin/ruby.exe - EXECUTABLE DIRECTORY: C:/Ruby22/bin - SPEC CACHE DIRECTORY: C:/Users/adam.laycock/.gem/specs - SYSTEM CONFIGURATION DIRECTORY: C:/ProgramData - RUBYGEMS PLATFORMS: - ruby - x86-mingw32 - GEM PATHS: - C:/Ruby22/lib/ruby/gems/2.2.0 - C:/Users/adam.laycock/.gem/ruby/2.2.0 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - https://rubygems.org/ - SHELL PATH: - C:\RubyDevKit\bin - C:\RubyDevKit\mingw\bin - C:\windows\system32 - C:\windows - C:\windows\System32\Wbem - C:\windows\System32\WindowsPowerShell\v1.0\ - C:\Program Files\nodejs\ - C:\Users\adam.laycock\AppData\Roaming\npm - C:\Users\adam.laycock\AppData\Local\GitHub\PortableGit_c2ba306e536fdf878271f7fe636a147ff37326ad\cmd - C:\Users\adam.laycock\AppData\Local\GitHub\PortableGit_c2ba306e536fdf878271f7fe636a147ff37326ad\bin - C:\Users\adam.laycock\AppData\Local\GitHub\PortableGit_c2ba306e536fdf878271f7fe636a147ff37326ad\mingw\bin - C:\Users\adam.laycock\AppData\Local\Apps\2.0\O3WGNDW8.VMM\C2M3657K.JNR\gith..tion_317444273a93ac29_0002.000a_7c768ac46c12be54 - C:\windows\Microsoft.NET\Framework\v4.0.30319 - C:\Ruby22\Bin 

jekyll -v returns 2.5.3

+7
windows ruby
source share
2 answers

This is probably due to some ABI violations in Ruby 2.2 and hitimes-1.2.2-x86-mingw32 does not include the hitimes-1.2.2-x86-mingw32 binary version for Ruby 2.2.

The fix is ​​to simply uninstall and reinstall it and use --platform ruby during installation.

Do this:

 gem uni hitimes **Remove ALL versions** gem ins hitimes -v 1.2.1 --platform ruby 

This recompiles hitimes compatible with Ruby 2.2.

Edit : copiousfreetime mentioned in comments , RubyInstaller DevKit is required to compile binary rubigems

Version 1.2.3 and later hitimes must contain live binaries for Ruby 2.2.X releases. Thanks copiousfreetime

+20
source share

UPDATE (2015-09-13) Version 1.2.3 has been released that solves this problem.

This was somewhat expected since hitimes v1.2.2 was released in January, and the first version of Ruby 2.2 for Windows was released 1 month ago on March 6th. I had no chance to build hits for Windows with Ruby 2.2 fat. I opened the issue for hits to release a new live hit binary that includes Ruby 2.2 support - https://github.com/copiousfreetime/hitimes/issues/40

+2
source share

All Articles