What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Error coming from `bundle install`

Solved

Error coming from `bundle install`

wayforward
Shopify Partner
43 4 6

Hi,

 

I am getting this error. Tried reinstalling various versions but no luck.

  • Ruby+Devkit 3.3.1-1 (x64)
  • Ruby+Devkit 3.2.4-1 (x64)
  • rubyinstaller-devkit-3.0.6-1-x64 ( as suggested here )

 

I am trying the Shopify Remix app. The error occurs when I add the extension in my app and run Shopify app dev.

 

Any idea how to resolve this?

Here is error in the text

Shutting down dev because of an error ...

── external error ────────────────────────────────────────────────────────────────────────────────────

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/xxx/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/gems/wdm-0.1.1/ext/wdm
C:/Ruby30-x64/bin/ruby.exe -I C:/Ruby30-x64/lib/ruby/3.0.0 -r
./siteconf20240530-23416-8k4hiz.rb 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/xxx/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/gems/wdm-0.1.1/ext/wdm
make DESTDIR\= clean

current directory: C:/Users/xxx/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/gems/wdm-0.1.1/ext/wdm
make DESTDIR\=
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] Error 1

make failed, exit code 2

Gem files will remain installed in C:/Users/xxxxx/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/gems/wdm-0.1.1 for
inspection.
Results logged to C:/Users/xxx/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/3.0.0/rubygems/ext/builder.rb:93:in `run'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:44:in `block in make'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:36:in `each'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:36:in `make'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/ext_conf_builder.rb:63:in `block in
build'
C:/Ruby30-x64/lib/ruby/3.0.0/tempfile.rb:317:in `open'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/ext_conf_builder.rb:26:in `build'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:159:in `build_extension'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:193:in `block in
build_extensions'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:190:in `each'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:190:in `build_extensions'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/installer.rb:837:in `build_extensions'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/rubygems_gem_installer.rb:76:in
`build_extensions'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/rubygems_gem_installer.rb:28:in
`install'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/source/rubygems.rb:206:in
`install'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/installer/gem_installer.rb:54:in
`install'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/installer/parallel_installer.rb:132:in
`do_install'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/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.11/lib/bundler/worker.rb:62:in
`apply_func'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/worker.rb:57:in
`block in process_queue'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/worker.rb:54:in
`loop'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/worker.rb:54:in
`process_queue'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/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...
Fetching ffi 1.15.4 (x64-mingw32)
Fetching concurrent-ruby 1.1.10
Fetching wdm 0.1.1
Fetching rb-fsevent 0.11.1
Installing wdm 0.1.1 with native extensions
Installing rb-fsevent 0.11.1
Installing concurrent-ruby 1.1.10
Installing ffi 1.15.4 (x64-mingw32)
Fetching rb-inotify 0.10.1
Installing rb-inotify 0.10.1
Fetching listen 3.7.1
Fetching bugsnag 6.24.2
Installing listen 3.7.1
Installing bugsnag 6.24.2

Accepted Solution (1)

wayforward
Shopify Partner
43 4 6

This is an accepted solution.

Finally, the below solution worked for me

solved first uninstall ruby from windows program and features.

now delete all ruby folder and msys folder from c drive.

additionally searched the entire c:\ drive for any gems / ruby / wdm or ff

Install this ruby kit Ruby+Devkit 3.1.2-1 (x64)

now after running command it will ask to update bundler so run : gem install bundler

 

then it worked.

View solution in original post

Replies 12 (12)

ConveyThis
Shopify Partner
2 0 0

I also encountered a similar problem, do you have any ideas why this is possible?

wayforward
Shopify Partner
43 4 6

no luck yet 😞

Chris3fD
Shopify Partner
1 0 0

I am having this issue too. Have you had any luck solving this? 

 

wayforward
Shopify Partner
43 4 6

nope but in my research I have noticed some people had luck when they remove any space in the url like username (c:\user\steve martin\)

Kinderfire
Shopify Partner
1 0 8

I was having this same problem. Apparently this is a known issue for windows 11 (see this thread).

We can bypass the issue by setting bundler to ignore the implicit function declaration. Here are the commands I ran in powershell to solve the issue on windows 11.

  1. $env:BUNDLE_BUILD__WDM="--with-cflags=-Wno-implicit-function-declaration"
  2. gem install bundler
  3. shopify app dev

Hope this helps!

gateley
Visitor
2 0 0

Tried this. No luck. 

 

Windos11

ConveyThis
Shopify Partner
2 0 0

I also tried this and it didn’t help me, my user is admin, I completely reset windows 10 and now nothing except node and ruby ​​is installed. But it still gives me the same error. On older PCs on which shopify cli was previously installed, everything works without problems.

GregJones55
Shopify Partner
14 4 2

This worked for me on windows 10, ty!

crismathew
Shopify Partner
1 0 0

Perfect. 

This solved my issue of shopify theme dev as well as shopify app dev

 

Thank you so much

drakedev
Shopify Partner
699 151 242

That fixed the same error on Windows 11, thank you

If my answer was helpful click Like.
If the problem is solved remember to click Accept Solution.
Shopify/Shopify Plus custom development: You can hire me for simple and/or complex tasks.

zishlife
Shopify Partner
1 0 1

solved 
first uninstall ruby from windows program and features.
now delete all ruby folder and msys folder from c drive.
Install this ruby kit  Ruby+Devkit 3.1.2-1 (x64)
now after running command it will ask to update bundler so run : gem install bundler
then it worked.

wayforward
Shopify Partner
43 4 6

This is an accepted solution.

Finally, the below solution worked for me

solved first uninstall ruby from windows program and features.

now delete all ruby folder and msys folder from c drive.

additionally searched the entire c:\ drive for any gems / ruby / wdm or ff

Install this ruby kit Ruby+Devkit 3.1.2-1 (x64)

now after running command it will ask to update bundler so run : gem install bundler

 

then it worked.