我有一个新的 Ruby on Rails 安装,我可以在其中看到默认的起始页。
我按照本指南将 MongoDB 安装到 Rails。
现在我在运行时收到此错误rake test
:
**Notice: C extension not loaded. This is required for optimum MongoDB Ruby driver performance.
You can install the extension as follows:
gem install bson_ext
If you continue to receive this message after installing, make sure that the
bson_ext gem is in your load path and that the bson_ext and mongo gems are of the same version.
我已经安装了 bson_ext gem,这意味着现在 bson_ext 不在我的加载路径中,或者 gem 的版本不同。
加载路径在哪里?我怎样才能改变它?如何检查宝石是否为同一版本?