jekyll: Cannot create a new jekyll site because of error 'error occurred while installing wdm (0.1.1),'

New to Ruby and Jekyll but generally tech savvy. Trying to create a new Jekyll site. Installed Ruby Followed all the steps in the docs (some problems accessing Jekyll, resolved by editing Windows path and rebooting)

In VSCODE, ran

gem install jekyll bundler

which ran with no faults.

Tried to create a new jekyll site with

jekyll new mysite

In VSCODE also

This reported the error error occurred while installing wdm (0.1.1), and Bundler cannot continue I’ve looked at various solutions to this - since I am new to Ruby I haven’t gone into any of its internals.

Ran

 bundle install

This reported Gem::Ext::BuildError: ERROR: Failed to build gem native extension. with quite extensive diagnostics

Ran

gem install wdm

This gave the same diagnostics. At the end it states

Gem files will remain installed in C:/Users/afree/.local/share/gem/ruby/3.3.0/gems/wdm-0.1.1 for inspection.  
Results logged to C:/Users/afree/.local/share/gem/ruby/3.3.0/extensions/x64-mingw-ucrt/3.3.0/wdm-0.1.1/gem_make.out

I’ve gone through most of these steps also outside VScode, in both cmd and powershell

I am raising this in the Jekyll forum, but it seems to me that if this is the experience of a newbie following the documentation, it’s serious enough to bring to the attention of the maintainers. Apologies (and let me know) if this is the wrong protocol.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 5
  • Comments: 16 (5 by maintainers)

Commits related to this issue

Most upvoted comments

I know this doesn’t solve the problem but wdm is not necessary. It just keeps the file changes in sync with the server process. I just commented out the wdm part in the gem file to get it working. I also want a solution

Hello Everyone.

What is not clear to me from going through all of the comments in this thread is, Was Ruby installed via the RubyInstaller for Windows program and if ridk enable was run in the terminal shell prior to running gem install jekyll or gem install wdm…?

Yes, I discovered this by trial and error eventually. The solution is to delete the reference to WDM.

Thus perhaps the issue is wrongly entitled. Actually, it is that WDM doesn’t install properly