I've been having some problems importing 3rd party gems.

Basically, this is what happens

#!/usr/local/bin/macruby
framework 'Foundation'
framework 'ScriptingBridge'
framework 'cocoa'

puts "Hola"
require "rubygems"
puts "Imported rubygems"

require "mechanize"
puts "Imported mechanize..."

I will get a Segmentation Fault when I import mechanize, this also happens if I 
replace the import of mechanize with 'nokogiri'. I can import sqlite3, but I 
just can't refer to SQLite3::Database.new, otherwise, I get another 
Segmentation Fault

In other words, I will see from the above code:
Hola

Imported rubygems
Segmentation fault


This is my setup
[ jtempleton macruby_client(master) 01:11 ] macruby -v
MacRuby 0.12 (ruby 1.9.2) [universal-darwin10.0, x86_64]

Mac Version 10.6.8, 2Ghz Core i7, 8GB RAM
 
$ macgem list

** LOCAL GEMS **
-----
mechanize (2.5.1)
nokogiri (1.5.2, 1.5.0, 1.4.3.1)
sqlite3 (1.3.5)
sqlite3-ruby (1.3.3)
------

I was also having the same thing occur on macRuby 0.11

Any suggestions would be greatly appreciated. Thank you!!!

Jason
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel

Reply via email to