[MacRuby-devel] macruby and sqlite3 gem

Laurent Sansonetti lsansonetti at apple.com
Sat Mar 13 18:30:25 PST 2010


Hi,

C extensions are not supported in the current stable release, 0.5.

I suppose you are using MacRuby trunk? Support for C extensions on trunk is _very_ experimental. I was able to get the sqlite3 extension working a couple of weeks ago, but I didn't test recently. And currently trunk is a bit unstable because we just merged a big branch. I recommend to wait for the next release if you want to use C extensions, and in the meantime, to use something that does not rely on the C API (such as Objective-C frameworks like CoreData).

Laurent

On Mar 13, 2010, at 4:13 AM, Wladj wrote:

> Can someone help me to get sqlite3 gem working with macruby?
> 
> > macirb
> irb(main):006:0> require 'rubygems'
> => true
> irb(main):007:0> require 'sqlite3'
> => true
> irb(main):008:0> db = SQLite3::Database.new("test.db")
> Segmentation fault
> 
> or suggest me a viable other way or db to have simple db function in macruby (CoreData seems to me too cumbersome)
> 
> Thanks
> Wladjmir
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20100313/e66786a9/attachment.html>


More information about the MacRuby-devel mailing list