Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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. –  Jawesome 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. –  Jawesome Jul 28 '11 at 20:48

Your Answer

 
discard

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.