Rubymine 调试器在配备 M1 芯片的 Macbook 上失败

发布于 2025-01-20 12:42:00 字数 756 浏览 1 评论 0原文

我最近切换到带有M1芯片的MacBook,但是现在尝试在Rubymine 2021.3.3上以调试模式运行我的项目时,我会收到以下错误:

/Users/xxx/.rbenv/versions/2.7.4/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:85:in 

`require': dlopen(/Users/xxx/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/debase-2.3.2/lib/debase_internals.bundle, 0x0009): tried: 
'/Users/xxx/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/debase-2.3.2/lib/debase_internals.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), 
    '/usr/local/lib/debase_internals.bundle' (no such file), 
    '/usr/lib/debase_internals.bundle' (no such file) 
    - /Users/xxx/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/debase-2.3.2/lib/debase_internals.bundle (LoadError)

I recently switched to a Macbook with the M1 chip, but now when trying to run my project in debugger mode on Rubymine 2021.3.3 I get the following error:

/Users/xxx/.rbenv/versions/2.7.4/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:85:in 

`require': dlopen(/Users/xxx/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/debase-2.3.2/lib/debase_internals.bundle, 0x0009): tried: 
'/Users/xxx/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/debase-2.3.2/lib/debase_internals.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), 
    '/usr/local/lib/debase_internals.bundle' (no such file), 
    '/usr/lib/debase_internals.bundle' (no such file) 
    - /Users/xxx/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/debase-2.3.2/lib/debase_internals.bundle (LoadError)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

睡美人的小仙女 2025-01-27 12:42:00

以下是我解决此问题的方法:

  1. 卸载 Rubymine
  2. 安装 Apple Silicon 版本的 Rubymine(为此我使用了 JetBrains Tool)
  3. 在终端中运行此命令:“gem uninstall debase”并选择卸载所有版本。
  4. 打开 Rubymine 和您的项目
  5. 单击调试按钮,然后在弹出窗口询问您是否要安装缺少的调试 gem 时选择“是”
  6. 接下来从终端运行“bundle install”(我在 Rubymine 终端中运行)。它安装了 debase 0.2.5.beta2

我现在已经启动并运行了。祝你好运!

菲什

Here is how I resolved this issue:

  1. Uninstall Rubymine
  2. Install the Appple Silicon version of Rubymine (I used the JetBrains Tool for this)
  3. In the terminal run this command: 'gem uninstall debase' and selected to uninstall all versions.
  4. Open Rubymine and your project
  5. Click the debug button and select "yes" when the popup asks if you want to install missing debug gems
  6. Next run 'bundle install' from the terminal (I ran this in Rubymine terminal). It installed debase 0.2.5.beta2

I am now up and running. Best of luck!

Fissh

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文