[MacRuby-devel] macruby and sqlite3 gem
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
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] macruby and sqlite3 gem
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
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] [MacRuby] #632: performSelector behaves oddly.
#632: performSelector behaves oddly.
-+--
Reporter: r...@…| Owner: lsansone...@…
Type: defect | Status: new
Priority: minor| Milestone:
Component: MacRuby |Keywords:
-+--
Hi --
performSelector behaves a little oddly when you try to use it on the built
ins of Ruby.
{{{
macruby-nightly > [1,2,3].performSelector(:pop)
ArgumentError: wrong number of arguments (-2055090267 for 1)
from /Users/robertgleeson/Projects/Ruby/sinatra-effigy/(irb):1:in
`'
}}}
[1,2,3].send(:pop) works fine. In another case, performSelector() caused a
seg fault but I can't remember what I did :-X
I'm only starting to learn Objective C and came across this when I wanted
to see how Objective C methods worked from within MacRuby.
--
Ticket URL:
MacRuby
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
