Ruby on Rails Sunday, August 1, 2010

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:in
`rescue 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:in `require'
from (irb):1
from /usr/ruby1.9.1/bin/irb:12:in `<main>'


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.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment