安裝Ruby 2.0之後,我嘗試運行我的.rb文件,出現此錯誤:如何在Mac上安裝最新版本的Ruby?
/Users/Andrew/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require': cannot load such file -- ruby-box (LoadError)
from /Users/Andrew/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
from box.rb:2:in `<main>'
我的代碼:
require "rubygems"
require "ruby-box"
感謝。將來,是否有更高效的方式將我所有的RubyGems移植到最新版本? – Andrew
@Andrew:取決於。您是否正在將RVM版本轉換爲RVM版本,還是從系統Ruby轉向RVM? – Linuxios