用Textmate运行ruby的问题[Snow Leopard]

时间:2011-05-18 07:50:49

标签: ruby textmate

我刚刚在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上运行这些东西。

1 个答案:

答案 0 :(得分:1)

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