Question about sqlite3-ruby on linux

first sorry for my poor english.I have a question about sqlite3-ruby on
linux.
I have compiled and installed the ruby 1.9.1, sqlite3 and sqlite3-ruby
on
redhat enterprise version.
but when I use irb and import the sqlite3 module, it will throw the
error,
what’s the matter.

irb(main):001:0> require ‘sqlite3’
LoadError: libsqlite3.so.0: cannot open shared object file: No such file
or
directory -
/usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/sqlite3-ruby-1.3.1/lib/sqlite3/sqlite3_native.so
from
/usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/sqlite3-ruby-1.3.1/lib/sqlite3.rb:6:in
require' from /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/sqlite3-ruby-1.3.1/lib/sqlite3.rb:6:inrescue in <top (required)>’
from
/usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/sqlite3-ruby-1.3.1/lib/sqlite3.rb:2:in
<top (required)>' from (irb):1:inrequire’
from (irb):1
from /usr/ruby1.9.1/bin/irb:12:in `’

thanks

----hywhy

View this message in context:
http://old.nabble.com/question-about-sqlite3-ruby-on-linux-tp29317264p29317264.html
Sent from the RubyOnRails Users mailing list archive at Nabble.com.

I hava solved this problem, use the fellow method:

sudo ln -s /usr/local/sqlite-3.3.5/lib/libsqlite3.so.0 libsqlite3.so.0

then it works fine~

thanks everybody~

View this message in context:
http://old.nabble.com/question-about-sqlite3-ruby-on-linux-tp29317264p29321639.html
Sent from the RubyOnRails Users mailing list archive at Nabble.com.

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