I’m not longer able to start my server. Have no idea what happened, but I’m getting this error when I run “rails s”:
Core:pocketbook lee$ rails s
dyld: lazy symbol binding failed: Symbol not found: _sqlite3_initialize
Referenced from: /Users/lee/Dropbox/Apps/pocketbook/ruby/1.9.1/gems/sqlite3-ruby-1.3.1/lib/sqlite3/sqlite3_native.bundle
Expected in: flat namespace
dyld: Symbol not found: _sqlite3_initialize
Referenced from: /Users/lee/Dropbox/Apps/pocketbook/ruby/1.9.1/gems/sqlite3-ruby-1.3.1/lib/sqlite3/sqlite3_native.bundle
Expected in: flat namespace
It’s weird though because I’m using ruby 1.9.2 with rvm. When I run “which ruby”, it retruns “.rvm/rubies/ruby-1.9.2-head/bin/ruby”
Not sure what I could have done to cause this problem.
I have seen this problem come up a few times one of the reason it could be cause this to happen is dew to the version of sqlite3 being the wrong version. Some times you can have the sqlite3-ruby gem installed but not be compatible with the sqlite version your running.
Make sure your sqlite3 version is higher then 3.6.16
To check just run sqlite3 -version and you will know. Simple solution is just to update the sqlite.
I had this error happen when I decided to remove any trace of mac ports and switch over to brew