MissingSourceFile: no such file to load -- sqlite3/database

This is a discussion on MissingSourceFile: no such file to load -- sqlite3/database within the RUBY forums in Programming Languages category; On Thu, Aug 28, 2008 at 06:45:18AM +0900, Jos Backus wrote: > http://github.com/jamis/sqlite3-ruby...690e5987744cd2 > 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 ...

Go Back   Application Development Forum > Programming Languages > RUBY

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #11  
Old 08-28-2008, 01:31 AM
Jos Backus
Guest
 
Default 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...690e5987744cd2
> 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

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:49 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.