我确信这是一个简单的问题但是因为看了这么长时间我看不到它。所以我用Sinatra,sqlite3,datamapper,dm-sqlite-adapter运行ruby 1.9.3。当我尝试运行Sinatra时,我明白了:
/Users/XXX/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- datamapper (LoadError)
from /Users/XXX/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from app.rb:2:in `<main>'
以下是前两行:
require 'sinatra'
require 'datamapper'
安装了宝石。 (datamapper(1.2.0))
答案 0 :(得分:3)