[MacRuby-devel] macruby and sqlite3 gem (Wladjmir)

Wladj wladjmir at gmail.com
Mon Mar 15 03:20:53 PDT 2010


Hi,

yes i used the latest nightly build, honestly i would prefer to use sqlite3 and activerecord instead of coredata, maybe in few months that will be possible.
Thanks for your commitment

Wladjmir
> 
> 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/20100315/bfe07e7c/attachment.html>


More information about the MacRuby-devel mailing list