Symbol not found: _rb_check_safe_obj

I have been trying to run Padrino on Jruby, but am hitting a issue when
running rake tasks involving the database. Searching around, I can’t
find
other instances of this issue. I installed jruby-openssl like it
mentions,
but that doesn’t help. I installed jruby using rvm and am running OSX
10.6.8 with XCode installed.

$ ruby -v
jruby 1.6.7.2 (ruby-1.8.7-p357) (2012-09-09 26e08ba) (Java HotSpot™
64-Bit Server VM 1.6.0_33) [darwin-x86_64-java]
$ padrino rake ar:create
=> Executing Rake ar:create …
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
dyld: lazy symbol binding failed: Symbol not found: _rb_check_safe_obj
Referenced from:
/Users/bbergstrom/.rvm/gems/jruby-1.6.7.2/gems/sqlite3-1.3.6/lib/sqlite3/sqlite3_native.bundle
Expected in: flat namespace

dyld: Symbol not found: _rb_check_safe_obj
Referenced from:
/Users/bbergstrom/.rvm/gems/jruby-1.6.7.2/gems/sqlite3-1.3.6/lib/sqlite3/sqlite3_native.bundle
Expected in: flat namespace

Trace/BPT trap

TIA,
Brian

I presume this is what you have to use on JRuby for SQLite -

gem ‘activerecord-jdbcsqlite3-adapter’

You seem to be using the native gem.

On Sun, Sep 9, 2012 at 7:23 AM, Brian Bergstrom

Ah! Thanks for the pointer.

I re-configured my project using the adapter:
https://github.com/jruby/activerecord-jdbc-adapter/

All is well now.

Thanks for the quick response.
Brian

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs