Do not works with JRuby #96

Closed
sobrinho opened this Issue Dec 18, 2011 · 2 comments

Comments

Projects
None yet
3 participants
@sobrinho

sqlite3 and sqlite3-ruby is not compatible with JRuby

@kidlab

This comment has been minimized.

Show comment Hide comment
@kidlab

kidlab Aug 6, 2012

I got a problem when running Taps server in JRuby

taps server sqlite://my-db.sqlite3 user passwd
/usr/bin/java: symbol lookup error: ~/.rvm/gems/jruby-1.6.7.2/gems/sqlite3-1.3.6/lib/sqlite3/sqlite3_native.so: undefined symbol: rb_check_safe_obj

Here is my system:

jruby 1.6.7.2 (ruby-1.9.2-p312) (2012-05-01 26e08ba) (Java HotSpot(TM) Server VM 1.7.0_03) [linux-i386-java]

kidlab commented Aug 6, 2012

I got a problem when running Taps server in JRuby

taps server sqlite://my-db.sqlite3 user passwd
/usr/bin/java: symbol lookup error: ~/.rvm/gems/jruby-1.6.7.2/gems/sqlite3-1.3.6/lib/sqlite3/sqlite3_native.so: undefined symbol: rb_check_safe_obj

Here is my system:

jruby 1.6.7.2 (ruby-1.9.2-p312) (2012-05-01 26e08ba) (Java HotSpot(TM) Server VM 1.7.0_03) [linux-i386-java]
@kidlab

This comment has been minimized.

Show comment Hide comment
@kidlab

kidlab Aug 7, 2012

I just found the solution, we must use JDBC in JRuby because native SQLite does not work.

export TAPS_DATABASE_URL="jdbc:sqlite:///tmp/taps.db.2012-08-07"
taps server jdbc:sqlite:///my-db.sqlite3 user passwd

kidlab commented Aug 7, 2012

I just found the solution, we must use JDBC in JRuby because native SQLite does not work.

export TAPS_DATABASE_URL="jdbc:sqlite:///tmp/taps.db.2012-08-07"
taps server jdbc:sqlite:///my-db.sqlite3 user passwd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment