ローカル環境構築におけるエラー【Error coming from `bundle install`】

Topic summary

問題の概要:
Windows11環境でShopify CLIのローカル環境構築中にbundle install実行時のエラーが発生。wdm-0.1.1 gemのネイティブ拡張ビルドに失敗している。

試した対処法:

  • Rubyのバージョン変更(3.3系、3.2系、3.1系、3.0系、2.7系)
  • 各種ツールの再インストール
  • 海外の類似事例を参考にした対応

現在の状況:

  • 複数のユーザーが同じ問題に直面
  • 上記の対処法では解決できず
  • Shopify CLIが使用できない状態が継続
  • 解決方法を持つ経験者からの情報を求めている

技術環境:
Node.js v20.3.0、npm 9.6.7、Shopify CLI 3.64.0、Ruby 3.0.7、Bundler 2.5.15を使用。エラーメッセージの一部が文字化けしており、ビルドプロセスの詳細な診断が困難な状況。

Summarized with AI on November 7. AI used: claude-sonnet-4-5-20250929.

海外でも同じようなエラーを抱えた方がおられるのですが、同じようにRubyのバージョンを下げたり、諸々再インストールしても以下のエラーの解決が出来ずにおります。

同じような方で、解決済の方は追われますでしょうか?

▼環境

Windows11

node -v:v20.3.0

npm -v:9.6.7

Current Shopify CLI version:3.64.0

ruby 3.0.7p220 (2024-04-23 revision 724a071175) [x64-mingw32]

git version 2.40.0.windows.1

Bundler version 2.5.15

【エラーメッセージ】

Error coming from bundle install

Command failed with exit code 5: bundle install
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Users/81801/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/gems/wdm-0.1.1/ext/wdm
C:/Ruby30-x64/bin/ruby.exe extconf.rb
checking for -lkernel32… yes
checking for windows.h… yes
checking for ruby.h… yes
checking for HAVE_RUBY_ENCODING_H… yes
checking for rb_thread_call_without_gvl()… yes
creating Makefile

current directory:
C:/Users/81801/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/gems/wdm-0.1.1/ext/wdm
make DESTDIR= sitearchdir=./.gem.20240717-2964-b2c3fw
sitelibdir=./.gem.20240717-2964-b2c3fw clean

current directory:
C:/Users/81801/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/gems/wdm-0.1.1/ext/wdm
make DESTDIR= sitearchdir=./.gem.20240717-2964-b2c3fw
sitelibdir=./.gem.20240717-2964-b2c3fw
generating wdm_ext-x64-mingw32.def
compiling entry.c
compiling memory.c
compiling monitor.c
compiling queue.c
compiling rb_change.c
compiling rb_monitor.c
rb_monitor.c: In function ‘rb_monitor_run_bang’:
rb_monitor.c:509:29: error: implicit declaration of function
‘rb_thread_call_without_gvl’ [-Wimplicit-function-declaration]
509 | waiting_succeeded = rb_thread_call_without_gvl(wait_for_changes,
monitor->process_event, stop_monitoring, monitor);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:246: rb_monitor.o] エラー 1

make failed, exit code 2

Gem files will remain installed in
C:/Users/81801/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/gems/wdm-0.1.1
for inspection.
Results logged to
C:/Users/81801/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/extensions/x64-mingw32/3.0.0/wdm-0.1.1/gem_make.out

C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/rubygems/ext/builder.rb:125:in run' C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/rubygems/ext/builder.rb:51:in block in
make’
C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/rubygems/ext/builder.rb:43:in each' C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/rubygems/ext/builder.rb:43:in make’
C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/rubygems/ext/ext_conf_builder.rb:42:in
build' C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/rubygems/ext/builder.rb:193:in build_extension’
C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/rubygems/ext/builder.rb:227:in block in build_extensions' C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/rubygems/ext/builder.rb:224:in each’
C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/rubygems/ext/builder.rb:224:in
build_extensions' C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/rubygems/installer.rb:853:in build_extensions’
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.15/lib/bundler/rubygems_gem_installer.rb:109:in
build_extensions' C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.15/lib/bundler/rubygems_gem_installer.rb:28:in install’
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.15/lib/bundler/source/rubygems.rb:205:in
install' C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.15/lib/bundler/installer/gem_installer.rb:54:in install’
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.15/lib/bundler/installer/gem_installer.rb:16:in
install_from_spec' C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.15/lib/bundler/installer/parallel_installer.rb:132:in do_install’
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.15/lib/bundler/installer/parallel_installer.rb:123:in
block in worker_pool' C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.15/lib/bundler/worker.rb:62:in apply_func’
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.15/lib/bundler/worker.rb:57:in
block in process_queue' C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.15/lib/bundler/worker.rb:54:in loop’
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.15/lib/bundler/worker.rb:54:in
process_queue' C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.15/lib/bundler/worker.rb:90:in block (2 levels) in create_threads’

An error occurred while installing wdm (0.1.1), and Bundler cannot continue.

In Gemfile:
wdm
Fetching gem metadata from https://rubygems.org/
Resolving dependencies…
Installing wdm 0.1.1 with native extensions

ご教授いただけますと幸いです。

私も同じ問題にあたって全然解決できません。
chatGPTの指示に従って、rubyのバージョンも 3.3系 3.2系 3.1系 3.0系 2.7系を試しました。
gemもlisten も試しましたが、bundler のエラーでshopify CLIが使えなくて困っています。

環境も光弘さんとほぼ同一です。