Installation
Jekyll version 4.1.1
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x64-mingw32]
gem 3.1.4
Bundler version 2.1.4
Windows 10 version 1903
rubyinstaller-devkit-2.7.2-1-x64.exe
Iāve been attempting to fix this problem with reinstalling ruby (removing PATH to Ruby installation in Windows and any other directories in the C: drive involved with gem and ruby) where whenever I start a new jekyll blog, everything works fine until I type bundle exec jekyll serve
I get the following
Could not find gem 'jekyll (~> 4.1.1) x64-mingw32' in any of the gem sources listed in your Gemfile. Run
bundle install to install missing gems.
of which case I do type the command bundle install
with the following message:
āāBundle Installā results inā¦ā
Fetching gem metadata from https://rubygems.org/ā¦
Fetching gem metadata from https://rubygems.org/.
Resolving dependenciesā¦
Using public_suffix 4.0.6
Using addressable 2.7.0
Using bundler 2.1.4
Using colorator 1.1.0
Using concurrent-ruby 1.1.7
Using eventmachine 1.2.7 (x64-mingw32)
Fetching http_parser.rb 0.6.0
Installing http_parser.rb 0.6.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: G:/vboxshare/Jekyll
Investing/myblog/jekyll-theme-yat/ruby/2.7.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
E:/Ruby27-x64/bin/ruby.exe -I E:/Ruby27-x64/lib/ruby/2.7.0 -r
./siteconf20201009-13560-xjxajt.rb extconf.rb
creating Makefile
current directory: G:/vboxshare/Jekyll
Investing/myblog/jekyll-theme-yat/ruby/2.7.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
make āDESTDIR=ā clean
current directory: G:/vboxshare/Jekyll
Investing/myblog/jekyll-theme-yat/ruby/2.7.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
make āDESTDIR=ā
generating ruby_http_parser-x64-mingw32.def
compiling ruby_http_parser.c
x86_64-w64-mingw32-gcc.exe: error:
Investing/myblog/jekyll-theme-yat/ruby/2.7.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser:
No such file or directory
make: *** [Makefile:244: ruby_http_parser.o] Error 1
make failed, exit code 2
Gem files will remain installed in G:/vboxshare/Jekyll
Investing/myblog/jekyll-theme-yat/ruby/2.7.0/gems/http_parser.rb-0.6.0 for
inspection.
Results logged to G:/vboxshare/Jekyll
Investing/myblog/jekyll-theme-yat/ruby/2.7.0/extensions/x64-mingw32/2.7.0/http_parser.rb-0.6.0/gem_make.out
An error occurred while installing http_parser.rb (0.6.0), and Bundler cannot
continue.
Make sure thatgem install http_parser.rb -v '0.6.0' --source 'https://rubygems.org/'
succeeds before bundling.
In Gemfile:
minima was resolved to 2.5.1, which depends on
jekyll-feed was resolved to 0.15.1, which depends on
jekyll was resolved to 4.1.1, which depends on
em-websocket was resolved to 0.5.2, which depends on
http_parser.rb`
And so ā¦
And whenever I type jekyll serve
I get the following
Could not find gem ājekyll (~> 4.1.1) x64-mingw32ā in any of the gem sources listed in your Gemfile.
Runbundle install
to install missing gems.
A clue
One thing that I have a clue is that when I type jekyll build
I get the following:
Traceback (most recent call last):
15: from E:/Ruby27-x64/bin/jekyll:23:in<main>' 14: from E:/Ruby27-x64/bin/jekyll:23:in
loadā
13: from E:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.1.1/exe/jekyll:11:in<top (required)>' 12: from E:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.1.1/lib/jekyll/plugin_manager.rb:52:in
require_from_bundlerā
11: from E:/Ruby27-x64/lib/ruby/2.7.0/bundler.rb:149:insetup' 10: from E:/Ruby27-x64/lib/ruby/2.7.0/bundler/runtime.rb:20:in
setupā
9: from E:/Ruby27-x64/lib/ruby/2.7.0/bundler/runtime.rb:101:inblock in definition_method' 8: from E:/Ruby27-x64/lib/ruby/2.7.0/bundler/definition.rb:226:in
requested_specsā
7: from E:/Ruby27-x64/lib/ruby/2.7.0/bundler/definition.rb:237:inspecs_for' 6: from E:/Ruby27-x64/lib/ruby/2.7.0/bundler/definition.rb:170:in
specsā
5: from E:/Ruby27-x64/lib/ruby/2.7.0/bundler/definition.rb:258:inresolve' 4: from E:/Ruby27-x64/lib/ruby/2.7.0/bundler/resolver.rb:22:in
resolveā
3: from E:/Ruby27-x64/lib/ruby/2.7.0/bundler/resolver.rb:49:instart' 2: from E:/Ruby27-x64/lib/ruby/2.7.0/bundler/resolver.rb:258:in
verify_gemfile_dependencies_are_found!ā
1: from E:/Ruby27-x64/lib/ruby/2.7.0/bundler/resolver.rb:258:ineach' E:/Ruby27-x64/lib/ruby/2.7.0/bundler/resolver.rb:290:in
block in verify_gemfile_dependencies_are_found!': Could not find gem āminima (~> 2.5) x64-mingw32ā in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound)
Mind you I have done the following: reinstalled ruby, bundle and jekyll, made sure to do complete uninstalls and clean reinstalls of ruby and made sure that I have all of ruby uninstalled from the system.