Shopify:来自“捆绑安装”的错误

问题描述 投票:0回答:1

我收到错误。

我正在尝试 Shopify Remix 应用程序。当我在应用程序中添加扩展程序并运行 Shopify 应用程序开发时,会发生错误。

知道如何解决这个问题吗?

文中有错误

由于错误而关闭开发...

外部错误──────

错误来自

bundle install

命令失败,退出代码 5:捆绑安装 Gem::Ext::BuildError: 错误: 无法构建 gem 本机扩展。

当前目录: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 检查 -lkernel32... 是 检查 windows.h...是的 检查 ruby.h...是的 检查 HAVE_RUBY_ENCODING_H...是 检查 rb_thread_call_without_gvl()...是的 创建Makefile

当前目录:C:/Users/xxx/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/gems/wdm-0.1.1/ext/wdm 使 DESTDIR= 干净

当前目录:C:/Users/xxx/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/gems/wdm-0.1.1/ext/wdm 使 DESTDIR= 生成 wdm_ext-x64-mingw32.def 编译entry.c 编译内存.c 编译monitor.c 编译queue.c 编译 rb_change.c 编译 rb_monitor.c rb_monitor.c:在函数“rb_monitor_run_bang”中: rb_monitor.c:509:29: 错误:函数的隐式声明 'rb_thread_call_without_gvl' [-Wimplicit-function-declaration] 509 | 509 waiting_succeeded = rb_thread_call_without_gvl(wait_for_changes, 监视器->process_event、stop_monitoring、监视器); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:246: rb_monitor.o] 错误 1

make 失败,退出代码 2

Gem 文件将保留安装在 C:/Users/xxxxx/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/gems/wdm-0.1.1 中 检查。 结果记录到 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 
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:在
block in build' C:/Ruby30-x64/lib/ruby/3.0.0/tempfile.rb:317:in 
打开' 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 
安装' 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 
安装' 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 
循环' 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 
create_threads 中的块(2 级)

安装 wdm (0.1.1) 时出错,Bundler 无法继续。

在 Gemfile 中: 波分复用 从 https://rubygems.org/......... 获取 gem 元数据。 解决依赖关系... 正在获取 ffi 1.15.4 (x64-mingw32) 获取并发 ruby 1.1.10 获取 wdm 0.1.1 获取 rb-fsevent 0.11.1 安装带有本机扩展的 wdm 0.1.1 安装 rb-fsevent 0.11.1 安装并发 ruby 1.1.10 安装 ffi 1.15.4 (x64-mingw32) 正在获取 rb-inotify 0.10.1 安装 rb-inotify 0.10.1 获取监听 3.7.1 获取 bugsnag 6.24.2 安装监听3.7.1 安装 bugsnag 6.24.2

尝试重新安装各种版本的 Ruby,但没有成功。

  • Ruby+Devkit 3.3.1-1 (x64)
  • Ruby+Devkit 3.2.4-1 (x64)
  • rubyinstaller-devkit-3.0.6-1-x64(按照建议此处
ruby rubygems shopify shopify-app
1个回答
0
投票

当我尝试设置我的shopify主题开发环境时,我也遇到了同样的问题。

我通过使用 devkit 安装 ruby 3.0.7-1-x64 解决了这个问题,并且成功了。

© www.soinside.com 2019 - 2024. All rights reserved.