我通过 PackageControl 安装了 SublimeREPL。
当我尝试在 Sublime Text 中为 ruby 文件运行 SublimeREPL 时,出现以下错误:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'pry' (>= 0) among 12 total gem(s) (Gem::LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
from /Users/ricky/Library/Application Support/Sublime Text 2/Packages/SublimeREPL/config/Ruby/pry_repl.rb:2:in `<main>'
***Repl Closed***
以防万一,我检查了是否安装了 pry:
gem list | grep pry
pry (0.10.1, 0.10.0, 0.9.12)
为了让 SublimeREPL 正常工作,我缺少什么?