Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I try to deploy my Rails application to an Apache server using Passenger, I get the following error in the logs:

undefined symbol: sqlite3_initialize

I get the same error when just running webrick using "rails s". How do I fix this? I'm using the latest Rails 3.0.9 and whatever the default SQLite is when running bundle install

share|improve this question
up vote 0 down vote accepted

You've installed the sqlite3 gem as part of bundle install, but have you installed the SQLite library somewhere Ruby can find it? Personally I'm stunned you got the gem to build, but if you're using some sort of bodged up sqlite install it's possible that gem install was able to find the headers, but the Ruby interpreter itself can't find the library to link against at runtime.

The long and the short of it is that you've made a mess of your system, and you're going to have a real learning experience cleaning it up.

share|improve this answer
Yeah, but my question was how to fix this. Do you have any idea on how to do this? I'd rather not reinstall the entire VPS since it's several hours of work. – johntheripper Jul 27 '11 at 23:26
There isn't enough information in your question to answer that, and I sincerely doubt you'll be able to provide enough information to make it possible beyond blind guesswork. As I said, it'll be a learning experience for you. – womble Jul 27 '11 at 23:27
This is unbelievable. I started over from scratch by re-installing everything including the OS itself and I still got the same issue. – johntheripper Jul 28 '11 at 20:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.