From: Jos Backus Date: 2008-08-28T14:31:07+09:00 Subject: Re: MissingSourceFile: no such file to load -- sqlite3/database On Thu, Aug 28, 2008 at 06:45:18AM +0900, Jos Backus wrote: > http://github.com/jamis/sqlite3-ruby/commit/b3bdabfd82b2abca0898bca3ee690e5987744cd2 > says it fixes linking against Ruby 1.8.5 but the sqlite3_api_wrap.c generated > by swig (from extconf.rb) defines the necessary RSTRING_* macros too late in > the generated code. Moving the defines up in the generated file works around > the problem, but I'm not sure what the right fix is as the defines already sit > at the top of the sqlite3_api.i file. Not sure how I came up with this but it's incorrect. Regenerating the sqlite3_api_wrap.c file (as extconf.rb does, using `swig -ruby sqlite3_api.i') fixes the issue. 1.2.4 has the regenerated sqlite3_api_wrap.c. Thanks again Jamis. -- Jos Backus jos at catnook.com