0
와 함께 작동하지 않습니다.번들 내가 아주 간단한 Gemfile에 문제가 mongo_ext
irb(main):001:0> require 'rubygems'
=> false
irb(main):002:0> require 'mongo'
**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.
=> true
하지만 시스템 IRB를 사용하는 경우 I는 부하입니다 : mongo_ext는 C 확장을 포함하기 때문에
$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'mongo'
=> true
irb(main):003:0>
어쩌면 그 행동이됩니다.
'gem install bson_ext'를 제안 했습니까? –
설치했습니다. 'irb '를 사용하면'mongo'가 필요할 때로드되지만'mongo exec ruil '을 사용하면로드되지 않습니다. –