OS X - `require': no such file to load -- sqlite3/sqlite3_native

I've searched and search, tried a number of things like unstalling sqlite3 and reinstalling. Reinstalling Rails, building sqlite3 from source, etc. Nothing seems to work. When I try to start up my server I get the following: MacBook-Pro:splash Ross$ rails server /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/sqlite3-1.3.3/lib/sqlite3.rb:6:in `require': no such file to load -- sqlite3/sqlite3_native (LoadError)   from /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/sqlite3-1.3.3/lib/sqlite3.rb:6:in `rescue in <top (required)>'   from /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/sqlite3-1.3.3/lib/sqlite3.rb:2:in `<top (required)>'   from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:68:in `require'   from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:68:in `block (2 levels) in require'   from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:66:in `each'   from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:66:in `block in require'   from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:55:in `each'   from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler/runtime.rb:55:in `require'   from /Volumes/SSD/Users/Ross/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/bundler-1.0.11/lib/bundler.rb:120:in `require'   from /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/config/application.rb:8:in `<top (required)>'   from /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/railties-3.0.3/lib/rails/commands.rb:28:in `require'   from /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/railties-3.0.3/lib/rails/commands.rb:28:in `block in <top (required)>'   from /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/railties-3.0.3/lib/rails/commands.rb:27:in `tap'   from /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/railties-3.0.3/lib/rails/commands.rb:27:in `<top (required)>'   from script/rails:6:in `require'   from script/rails:6:in `<main>'

However, if I do this: MacBook-Pro:splash Ross$ irb ruby-1.9.2-p136 :001 > require 'sqlite3' => true ruby-1.9.2-p136 :002 >

What isn't working? Security issue? path? This worked for months and stopped working after I installed the curb and json gems.

Ideas?

I've searched and search, tried a number of things like unstalling sqlite3 and reinstalling. Reinstalling Rails, building sqlite3 from source, etc. Nothing seems to work. When I try to start up my server I get the following:

Have you checked the architecture of the native extensions you use (you can use the lipo command to examine which architectures a library is built for)? If there is a mismatch there you could run into trouble

Fred

Where's the native extension stored?

Where's the native extension stored?

Some where inside the gem. gem which foo tells you where the files are for the gem name foo

Fred

Yeah both are x86-64 so looks fine...