我有一個新的Ruby on Rails安裝,我可以看到默認的開始頁面。我跟着this guide爲了安裝MongoDB到Rails。Ruby on Rails和MongoDB
現在運行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寶石,這意味着現在bson_ext在沒有我的負荷路徑或寶石是不一樣的版本。
負載路徑在哪裏?我該如何改變它? 如何檢查寶石是否是相同的版本?
這不是,我該如何添加它?對不起,但我是Rails的新手。從與PHP的長期關係切換=) – Dimme
好吧,我認爲這解決了它:'gem「bson_ext」'。謝謝! – Dimme
在您的gemfile中添加'gem「bson_ext」'行,然後從命令行運行'bundle update'。 – theTRON