datamapper / do

DataObjects
147 stars 73 forks source link

LoadError: dlopen #23

Closed chip closed 12 years ago

chip commented 12 years ago

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.

dbussink commented 12 years ago

This issue should have been fixed in current master. Working on pushing new versions out as we speak.

chip commented 12 years ago

@dbussink - Thanks, but I just downloaded the latest and I still have the error. Here's what Bundler reported:

> bundle update
Fetching source index for http://rubygems.org/
Using addressable (2.2.6) 
Installing data_objects (0.10.8) 
Using dm-core (1.2.0) 
Using dm-do-adapter (1.2.0) 
Installing do_sqlite3 (0.10.8) with native extensions 
Using dm-sqlite-adapter (1.2.0) 
Using haml (3.1.4) 
Using rack (1.4.1) 
Using rack-protection (1.2.0) 
Using tilt (1.3.3) 
Using sinatra (1.3.2) 
Using bundler (1.0.21) 
Your bundle is updated! Use `bundle show [gemname]` to see where a bundled gem is installed.

What am I missing? Thanks.