我决定摆脱 rvm,但我在用我的新版本 ruby 1.9.2 编译 gem 时遇到了麻烦。gem 需要 1.9.2,我有,但说没有它就无法安装,所以错误消息没有意义。
我怎样才能明确告诉 gem 用所说的 ruby 版本编译?
Gem::InstallError: linecache19 requires Ruby version >= 1.9.2.
An error occured while installing linecache19 (0.5.12), and Bundler cannot continue.
Make sure that `gem install linecache19 -v '0.5.12'` succeeds before bundling.
apps2 ~/projects/sms/apps2/apps2_admin $ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.8.0]
apps2 ~/projects/sms/apps2/apps2_admin $ which ruby
/usr/local/bin/ruby