From: Jos Backus Date: 2008-08-28T06:45:18+09:00 Subject: Re: MissingSourceFile: no such file to load -- sqlite3/database On Wed, Aug 27, 2008 at 10:22:02PM +0900, Joo Macaba wrote: > Thanks for the help/time, Jos ! Welcome. But 1.2.3 doesn't run out of the box either, at least on CentOS 5 with the stock Ruby 1.8.5. /usr/bin/ruby: symbol lookup error: /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.3/lib/sqlite3_api.so: undefined symbol: RSTRING_PTR $ nm sqlite3_api.so | grep RSTRING U RSTRING_LEN U RSTRING_PTR 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. -- Jos Backus jos at catnook.com