I'm struggling since hours with sqlite3. Maybe I'm wrong to post here,
as I feel the problem is not directly related to rails.
After a "gem clean" this morning, mongrel doesn't want to start
anymore:
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
`gem_original_require': no such file to load -- sqlite3
(MissingSourceFile)
But sqlite3-ruby is well installed under gem (I reinstalled to be
sure, desinstalled, resinstalled, etc) but it can't be loaded: ruby -
rubygems -e "require 'sqlite3'" returns the same error as above. It
loads well if I cd in the sqlite directory.
Some precision :
launching the same command in the sqlite3 gem work.
I install sqlite3 gem iin my local gem path (~/.gem/ruby/1.8/gems)
but the result is the same
this is closely related to datamapper and data_objects. It happened to
me yesterday when installed Integrity app and it was *quite* nasty (no
such file... in every Rake task etc).
Solution which has worked for me was from namelessjohn at
#sinatra@freenode [1]:
In fact when you use rubygems it add all lib folder of each gem to the
load path. So when you require sqlite3 the system try loading all or
the first file the file named sqlite3 exinsting in the load path and
loading a dll file on a system different than windows cause an error.
o_sqlite3 gem that came with Merb caused this problem. The solution is to get rid of this gem by running "sudo gem >uninstall do_sqlite3″. However, if you're running JRuby and have Merb installed, this won't work.