我不知道这有什么关系。一切正常,直到我尝试创建一个新的 MongoClient
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'mongo'
=> true
irb(main):003:0> include Mongo
=> Object
irb(main):004:0> client = MongoClient.new('127.0.0.1', 27017)
NameError: uninitialized constant MongoClient
from (irb):4
from :0
irb(main):005:0>