i can't serve my theme in my shopify partner store i got this error. please help me

Solved

i can't serve my theme in my shopify partner store i got this error. please help me

sifat-s_e_404
Shopify Partner
3 1 0

─ warning ────────────────────────────────────────────────────────────────────╮
│ │
│ The `shopify theme serve` command is deprecated. │
│ │
│ Use `shopify theme dev` instead. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯

── 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/code-sifat/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
C:/Ruby32-x64/bin/ruby.exe extconf.rb
creating Makefile

current directory:
C:/Users/code-sifat/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
make DESTDIR\= sitearchdir\=./.gem.20231127-3708-bkde3n
sitelibdir\=./.gem.20231127-3708-bkde3n clean
current directory:
C:/Users/code-sifat/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
make DESTDIR\= sitearchdir\=./.gem.20231127-3708-bkde3n
sitelibdir\=./.gem.20231127-3708-bkde3n
make failedNo such file or directory - make

Gem files will remain installed in
C:/Users/code-sifat/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/racc-1.7.3
for inspection.
Results logged to
C:/Users/code-sifat/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/extensions/x64-mingw-ucrt/3.2.0/racc-1.7.3/gem_make.out

C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:94:in `rescue in run'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:91:in `run'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:51:in `block in make'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:43:in `each'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:43:in `make'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/ext/ext_conf_builder.rb:41:in `build'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:187:in `build_extension'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:221:in `block in
build_extensions'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:218:in `each'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:218:in `build_extensions'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/installer.rb:843:in `build_extensions'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/rubygems_gem_installer.rb:76:in
`build_extensions'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/rubygems_gem_installer.rb:28:in
`install'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/source/rubygems.rb:203:in
`install'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/installer/gem_installer.rb:54:in
`install'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/installer/parallel_installer.rb:130:in
`do_install'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/installer/parallel_installer.rb:121:in
`block in worker_pool'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/worker.rb:62:in
`apply_func'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/worker.rb:57:in
`block in process_queue'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/worker.rb:54:in
`loop'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/worker.rb:54:in
`process_queue'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/worker.rb:90:in
`block (2 levels) in create_threads'

An error occurred while installing racc (1.7.3), and Bundler cannot continue.

In Gemfile:
theme-check was resolved to 1.15.0, which depends on
nokogiri was resolved to 1.14.5, which depends on
racc


Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Users/code-sifat/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/wdm-0.1.1/ext/wdm
C:/Ruby32-x64/bin/ruby.exe extconf.rb
checking for -lkernel32... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby32-x64/bin/$(RUBY_BASE_NAME)
--with-kernel32-dir
--without-kernel32-dir
--with-kernel32-include
--without-kernel32-include=${kernel32-dir}/include
--with-kernel32-lib
--without-kernel32-lib=${kernel32-dir}/lib
--with-kernel32lib
--without-kernel32lib
C:/Ruby32-x64/lib/ruby/3.2.0/mkmf.rb:490:in `try_do': The compiler failed to
generate an executable file. (RuntimeError)
You have to install development tools first.

from C:/Ruby32-x64/lib/ruby/3.2.0/mkmf.rb:583:in `try_link0'
from C:/Ruby32-x64/lib/ruby/3.2.0/mkmf.rb:601:in `try_link'
from C:/Ruby32-x64/lib/ruby/3.2.0/mkmf.rb:819:in `try_func'
from C:/Ruby32-x64/lib/ruby/3.2.0/mkmf.rb:1062:in `block in have_library'
from C:/Ruby32-x64/lib/ruby/3.2.0/mkmf.rb:989:in `block in checking_for'
from C:/Ruby32-x64/lib/ruby/3.2.0/mkmf.rb:354:in `block (2 levels) in postpone'
from C:/Ruby32-x64/lib/ruby/3.2.0/mkmf.rb:324:in `open'
from C:/Ruby32-x64/lib/ruby/3.2.0/mkmf.rb:354:in `block in postpone'
from C:/Ruby32-x64/lib/ruby/3.2.0/mkmf.rb:324:in `open'
from C:/Ruby32-x64/lib/ruby/3.2.0/mkmf.rb:350:in `postpone'
from C:/Ruby32-x64/lib/ruby/3.2.0/mkmf.rb:988:in `checking_for'
from C:/Ruby32-x64/lib/ruby/3.2.0/mkmf.rb:1057:in `have_library'
from extconf.rb:19:in `<main>'

To see why this extension failed to compile, please check the mkmf.log which can
be found here:

C:/Users/code-sifat/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/extensions/x64-mingw-ucrt/3.2.0/wdm-0.1.1/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in
C:/Users/code-sifat/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/wdm-0.1.1
for inspection.
Results logged to
C:/Users/code-sifat/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/extensions/x64-mingw-ucrt/3.2.0/wdm-0.1.1/gem_make.out

C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:119:in `run'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/ext/ext_conf_builder.rb:27:in `build'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:187:in `build_extension'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:221:in `block in
build_extensions'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:218:in `each'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/ext/builder.rb:218:in `build_extensions'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/installer.rb:843:in `build_extensions'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/rubygems_gem_installer.rb:76:in
`build_extensions'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/rubygems_gem_installer.rb:28:in
`install'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/source/rubygems.rb:203:in
`install'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/installer/gem_installer.rb:54:in
`install'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/installer/parallel_installer.rb:130:in
`do_install'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/installer/parallel_installer.rb:121:in
`block in worker_pool'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/worker.rb:62:in
`apply_func'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/worker.rb:57:in
`block in process_queue'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/worker.rb:54:in
`loop'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/lib/bundler/worker.rb:54:in
`process_queue'
C:/Users/code-sifat/.local/share/gem/ruby/3.2.0/gems/bundler-2.4.22/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
Installing racc 1.7.3 with native extensions

Accepted Solutions (2)

Liam
Community Manager
3108 340 871

This is an accepted solution.

Hi Sifat,

 

What version of the Shopify CLI are you using? Are you seeing this when you run `shopify theme dev`?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

sifat-s_e_404
Shopify Partner
3 1 0

This is an accepted solution.

well Liam, Thanks for your support I solved my problem browsing from internet . I was try around 6 times by downloading Shopify cli 3.0 after that I set-up my OS .Then i install all the necessary things which is important for set-up cli i had install extra one thing which is yarn i think it helps me and i was login with my terminal just only my store name not full store link . all things helps me a lot. well i want from you some warm advice as a beginner which is the best i should follow to become a successful theme developer and please mention my step by step process. Thank you so much Brother.

View solution in original post

Replies 2 (2)

Liam
Community Manager
3108 340 871

This is an accepted solution.

Hi Sifat,

 

What version of the Shopify CLI are you using? Are you seeing this when you run `shopify theme dev`?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

sifat-s_e_404
Shopify Partner
3 1 0

This is an accepted solution.

well Liam, Thanks for your support I solved my problem browsing from internet . I was try around 6 times by downloading Shopify cli 3.0 after that I set-up my OS .Then i install all the necessary things which is important for set-up cli i had install extra one thing which is yarn i think it helps me and i was login with my terminal just only my store name not full store link . all things helps me a lot. well i want from you some warm advice as a beginner which is the best i should follow to become a successful theme developer and please mention my step by step process. Thank you so much Brother.