datamapper/do — Issue #23: LoadError: dlopen
Author: chip
Created: 2012-02-10 16:49:54+00:00
State: open

Hi, I have a Sinatra app that gives me this error:

```
Boot Error

Something went wrong while loading app.rb

LoadError: dlopen(/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/do_sqlite3-0.10.6/lib/do_sqlite3/do_sqlite3.bundle, 9): Symbol not found: _sqlite3_enable_load_extension Referenced from: /Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/do_sqlite3-0.10.6/lib/do_sqlite3/do_sqlite3.bundle Expected in: flat namespace in /Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/do_sqlite3-0.10.6/lib/do_sqlite3/do_sqlite3.bundle - /Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/do_sqlite3-0.10.6/lib/do_sqlite3/do_sqlite3.bundle

/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/do_sqlite3-0.10.6/lib/do_sqlite3/do_sqlite3.bundle
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/do_sqlite3-0.10.6/lib/do_sqlite3.rb:27
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/dm-sqlite-adapter-1.1.0/lib/dm-sqlite-adapter/adapter.rb:1
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/dm-sqlite-adapter-1.1.0/lib/dm-sqlite-adapter.rb:1
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `gem_original_require'
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `require'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/dm-core-1.1.0/lib/dm-core/adapters.rb:163:in `load_adapter'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/dm-core-1.1.0/lib/dm-core/adapters.rb:133:in `adapter_class'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/dm-core-1.1.0/lib/dm-core/adapters.rb:13:in `new'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/dm-core-1.1.0/lib/dm-core.rb:219:in `setup'
/Users/chip/code/fitness/app.rb:6
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/shotgun-0.9/lib/shotgun/loader.rb:114:in `inner_app'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/shotgun-0.9/lib/shotgun/loader.rb:102:in `assemble_app'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/shotgun-0.9/lib/shotgun/loader.rb:86:in `proceed_as_child'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/shotgun-0.9/lib/shotgun/loader.rb:31:in `call!'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/shotgun-0.9/lib/shotgun/loader.rb:18:in `call'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/shotgun-0.9/lib/shotgun/favicon.rb:12:in `call'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/rack-1.3.6/lib/rack/builder.rb:134:in `call'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/rack-1.3.6/lib/rack/handler/webrick.rb:59:in `service'
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/server.rb:162:in `start'
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/server.rb:95:in `start'
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/server.rb:92:in `each'
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/server.rb:92:in `start'
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/server.rb:23:in `start'
/Users/chip/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/webrick/server.rb:82:in `start'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/gems/shotgun-0.9/bin/shotgun:156
/Users/chip/.rvm/gems/ruby-1.8.7-p352/bin/shotgun:19:in `load'
/Users/chip/.rvm/gems/ruby-1.8.7-p352/bin/shotgun:19
```

I'm running ```RVM 1.8.5```, ```Ruby 1.8.7-p352``` on ```OSX 10.7.2```. I googled for ```LoadError```, ```_sqlite3_enable_load_extension```, and a number of other things related to ```do_sqlite3``` and haven't found anything useful yet.

Do you have a suggestion? Thanks.