MongoMapper and bson_ext problem

前端 未结 6 1786
夕颜
夕颜 2021-02-06 02:49

I can\'t get MongoMapper to work with my Rails app. I get this error message:

**Notice: C extension not loaded. This is required for optimum MongoDB Ruby driver performa

6条回答
  •  孤街浪徒
    2021-02-06 03:15

    I needed specify the bson version to get this to work, like so:

    gem 'mongo', "1.1"
    gem 'bson', "1.1"
    gem 'bson_ext', "1.1"
    

    (Using rails 3)

提交回复
热议问题