我的命令行紅寶石1.9.2由於RVM,但是當我啓動撬(這點到1.9.2寶石),它使用的紅寶石1.8.7如何撬起
你知道ruby版本pry使用哪裏指定?
macflashy:~ $rvm info
ruby:
interpreter: "ruby"
version: "1.9.2p290"
date: "2011-07-09"
platform: "x86_64-darwin11.1.0"
patchlevel: "2011-07-09 revision 32553"
full_version: "ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]"
homes:
gem: "/Users/nrolland/.rvm/gems/ruby-1.9.2-p290"
ruby: "/Users/nrolland/.rvm/rubies/ruby-1.9.2-p290"
macflashy:~ $ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]
macflashy:~ $ which pry
/Users/nrolland/.rvm/gems/ruby-1.9.2-p290/bin/pry
macflashy:~ $ pry
[1] pry(main)> RUBY_VERSION
=> "1.8.7"
如果我從命令行執行ruby -e'require pry; binding.pry',那麼ruby的版本的確是1.9.2 – nicolas
@nicholas我會說你的環境裏有什麼可怕的東西;嘗試從您的系統ruby中卸載pry。確實是 – horseyguy
。卸載/重新安裝工作.....奇怪 – nicolas