Closed sobrinho closed 12 years ago
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]
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
sqlite3 and sqlite3-ruby is not compatible with JRuby