[MacRuby-devel] Weird xcode / macruby differences
Ashley Towns
ashleyis at me.com
Tue Nov 16 19:58:39 PST 2010
Hey would anyone be able to fill me in on whats going wrong here (or how to find out more on whats up)
~ ∴ macgem list --local
*** LOCAL GEMS ***
rake (0.8.7)
sqlite3-ruby (1.3.2)
~ ∴ macruby -e "require 'rubygems'; require 'sqlite3'; p $:"
["/Users/ashleyis/.rvm/gems/macruby-0.7.1/gems/sqlite3-ruby-1.3.2/bin", "/Users/ashleyis/.rvm/gems/macruby-0.7.1/gems/sqlite3-ruby-1.3.2/lib", "/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/site_ruby/1.9.2", "/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/site_ruby/1.9.2/universal-darwin10.0", "/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/site_ruby", "/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/vendor_ruby/1.9.2", "/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/vendor_ruby/1.9.2/universal-darwin10.0", "/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/vendor_ruby", "/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/1.9.2", "/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/1.9.2/universal-darwin10.0", "."]
rubygems has pulled in the correct gem.
now on xcode:
puts $:
require 'rubygems'
puts $:
require 'sqlite3'
puts $:
2010-11-17 14:52:28.651 sqlitebrowser[78482:a0f] +[NSATSGlyphGenerator initialize] invocation. The class is deprecated.
/Users/ashleyis/Documents/Projects/sqlitebrowser/build/Debug/sqlitebrowser.app/Contents/Resources
/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/site_ruby/1.9.2
/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/site_ruby/1.9.2/universal-darwin10.0
/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/site_ruby
/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/vendor_ruby/1.9.2
/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/vendor_ruby/1.9.2/universal-darwin10.0
/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/vendor_ruby
/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/1.9.2
/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/1.9.2/universal-darwin10.0
.
/Users/ashleyis/Documents/Projects/sqlitebrowser/build/Debug/sqlitebrowser.app/Contents/Resources
/Users/ashleyis/.rvm/gems/ruby-1.9.2-p0/gems/bundler08-0.8.5/bin
/Users/ashleyis/.rvm/gems/ruby-1.9.2-p0/gems/bundler08-0.8.5/lib
/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/site_ruby/1.9.2
/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/site_ruby/1.9.2/universal-darwin10.0
/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/site_ruby
/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/vendor_ruby/1.9.2
/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/vendor_ruby/1.9.2/universal-darwin10.0
/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/vendor_ruby
/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/1.9.2
/Library/Frameworks/MacRuby.framework/Versions/0.7.1/usr/lib/ruby/1.9.2/universal-darwin10.0
.
/Users/ashleyis/Documents/Projects/sqlitebrowser/build/Debug/sqlitebrowser.app/Contents/Resources/rb_main.rb:11:in `<main>': dlopen(/Users/ashleyis/.rvm/gems/ruby-1.9.2-p0/gems/ffi-0.6.3/lib/ffi_c.bundle, 9): no suitable image found. Did find:
/Users/ashleyis/.rvm/gems/ruby-1.9.2-p0/gems/ffi-0.6.3/lib/ffi_c.bundle: mach-o, but wrong architecture - /Users/ashleyis/.rvm/gems/ruby-1.9.2-p0/gems/ffi-0.6.3/lib/ffi_c.bundle (LoadError)
it seems to be pulling from my 1.9.2-p0 gems folder instead of macruby-0.7.1 (and grabbing bundler)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20101117/fc45d596/attachment-0001.html>
More information about the MacRuby-devel
mailing list