使用 Textmate[Snow Leopard] 运行 ruby​​ 时出现问题

发布于 2024-11-08 18:33:39 字数 1106 浏览 1 评论 0原文

我刚刚在我的 Snow Leopard 上安装了 Textmate 并尝试运行 ruby​​。

我尝试类似

puts "test"

至少我收到错误消息

/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/plist.bundle: dlopen(/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/plist.bundle, 9): no suitable image found.  Did find: (LoadError)
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/plist.bundle: no matching architecture in universal wrapper - /Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/plist.bundle
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:3
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/stdin_dialog.rb:1:in `require'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/stdin_dialog.rb:1

我还在终端中编写了下一个命令来检查 ruby​​ 有什么问题

echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

ruby -e 'puts ENV["_"]'
/usr/bin/ruby

我真的不明白该怎么做才能在 textmate 上运行这个东西。

I have just installed Textmate on my Snow Leopard and try to run ruby.

I try smth like

puts "test"

At least i receive error message

/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/plist.bundle: dlopen(/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/plist.bundle, 9): no suitable image found.  Did find: (LoadError)
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/plist.bundle: no matching architecture in universal wrapper - /Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/plist.bundle
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:3
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/stdin_dialog.rb:1:in `require'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/stdin_dialog.rb:1

Also i have written in terminal next commands to check what is wrong with ruby

echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

ruby -e 'puts ENV["_"]'
/usr/bin/ruby

I really can't understand what to do to run this stuff on textmate.

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

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

发布评论

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

评论(1

要走干脆点 2024-11-15 18:33:39

也许这是你的 64 位安装的 osx 不支持 textmate plist.bundle 的问题。
试试这个:
http://snipplr.com/view/40934/修复textmate-bundles-after-snow-leopard-upgrade/

maybe this is a problem with textmate plist.bundle not supported by your 64bit installation of osx.
try this:
http://snipplr.com/view/40934/fix-textmate-bundles-after-snow-leopard-upgrade/

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