海外でも同じようなエラーを抱えた方がおられるのですが、同じように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
ご教授いただけますと幸いです。