无法启动rdebug
我似乎无法在我的机器上启动 rdebug。 其他一切似乎都工作正常。 我尝试过更新我的宝石,但运气不佳。 我尝试了一些将 arch 标志设置为 x86_64 并更新 gem 的建议。再次没有运气。 我使用的是 Mac OSX 10.6.6
/opt/.gem/ruby/1.8/gems/linecache-0.43/lib/../lib/trace_nums.bundle: dlopen(/opt/.gem/ruby/1.8/gems/linecache-0.43/lib/../lib/trace_nums.bundle, 9): no suitable image found. Did find: (LoadError)
/opt/.gem/ruby/1.8/gems/linecache-0.43/lib/../lib/trace_nums.bundle: no matching architecture in universal wrapper - /opt/.gem/ruby/1.8/gems/linecache-0.43/lib/../lib/trace_nums.bundle
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `require'
任何建议都会有很大帮助。 谢谢
I cannot seem to start rdebug on my machine.
Everything else seems to be working okay.
I've tried updating my gems without much luck.
I've tried some suggestion of setting the arch flag to x86_64 and update the gems. No luck again.
I am on a Mac OSX 10.6.6
/opt/.gem/ruby/1.8/gems/linecache-0.43/lib/../lib/trace_nums.bundle: dlopen(/opt/.gem/ruby/1.8/gems/linecache-0.43/lib/../lib/trace_nums.bundle, 9): no suitable image found. Did find: (LoadError)
/opt/.gem/ruby/1.8/gems/linecache-0.43/lib/../lib/trace_nums.bundle: no matching architecture in universal wrapper - /opt/.gem/ruby/1.8/gems/linecache-0.43/lib/../lib/trace_nums.bundle
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `require'
Any suggestions would be of great help.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更新 linecache gem 应该可以解决此问题:
sudo gem install linecache
如果这不能解决问题,则可能与来自
/opt/
的 gem 有关 --我的在/Library/Ruby/Gems/1.8/gems/linecache-0.43/lib/../lib/trace_nums.bundle
上失败(重新安装 linecache 修复了它)。或者你可以通过在 i386 模式下运行 rdebug 来解决这个问题:
arch -i386 rdebug ...
Updating the linecache gem should fix this:
sudo gem install linecache
If that doesn't cut it, it might have something to do with your gems coming from
/opt/
-- mine was failing on/Library/Ruby/Gems/1.8/gems/linecache-0.43/lib/../lib/trace_nums.bundle
(and re-installing linecache fixed it).Or you could work around it by running rdebug in i386 mode:
arch -i386 rdebug ...