Skip to content

Instantly share code, notes, and snippets.

@luigi
Created October 8, 2010 17:47
Show Gist options
  • Save luigi/617190 to your computer and use it in GitHub Desktop.
Save luigi/617190 to your computer and use it in GitHub Desktop.
Able to load bson_ext version 1.0.4, but >= 1.0.7 is required.
**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.
*** Exception NoMethodError in PhusionPassenger::Rack::ApplicationSpawner (undefined method `put_binary' for #<BSON::ByteBuffer:0x103f4fa20>) (process 323):
from /Users/luigi/.gem/ruby/1.8/gems/mongo-1.0.9/lib/../lib/mongo/cursor.rb:407:in `construct_query_message'
from /Users/luigi/.gem/ruby/1.8/gems/mongo-1.0.9/lib/../lib/mongo/cursor.rb:389:in `send_initial_query'
from /Users/luigi/.gem/ruby/1.8/gems/mongo-1.0.9/lib/../lib/mongo/cursor.rb:357:in `refresh'
from /Users/luigi/.gem/ruby/1.8/gems/mongo-1.0.9/lib/../lib/mongo/cursor.rb:66:in `next_document'
from /Users/luigi/.gem/ruby/1.8/gems/mongo-1.0.9/lib/../lib/mongo/db.rb:480:in `command'
from /Users/luigi/.gem/ruby/1.8/gems/mongo-1.0.9/lib/../lib/mongo/connection.rb:614:in `check_is_master'
from /Users/luigi/.gem/ruby/1.8/gems/mongo-1.0.9/lib/../lib/mongo/connection.rb:474:in `connect'
from /Users/luigi/.gem/ruby/1.8/gems/mongo-1.0.9/lib/../lib/mongo/connection.rb:473:in `each'
from /Users/luigi/.gem/ruby/1.8/gems/mongo-1.0.9/lib/../lib/mongo/connection.rb:473:in `connect'
from /Users/luigi/.gem/ruby/1.8/gems/mongo-1.0.9/lib/../lib/mongo/connection.rb:137:in `initialize'
from ./config/config.rb:21:in `new'
from ./config/config.rb:21:in `new_mongo_connection'
from ./config/config.rb:16:in `setup_mongomapper'
from ./config/config.rb:11:in `setup'
from ./app.rb:9
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
from config.ru:2
from /Users/luigi/.gem/ruby/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
from /Users/luigi/.gem/ruby/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
from config.ru:1:in `new'
from config.ru:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment