【发布时间】:2012-01-09 07:10:11
【问题描述】:
我有一个新的 Ruby on Rails 安装,我可以在其中看到默认的起始页。
我关注this guide 是为了将 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 不是相同的版本。
加载路径在哪里?我怎样才能改变它? 如何检查 gem 是否为同一版本?
【问题讨论】:
标签: ruby-on-rails ruby mongodb rubygems mongodb-ruby