libdb2.so.1: cannot open shared object file: No such file or directory – … ibm_db.so

Got this error while deploying a Rails app on Nginx: libdb2.so.1: cannot open shared object file: No such file or directory - ... ibm_db.so This means that the ibm_db adapter is installed, but it can't find the DB2 libraries. The issue is that IBM_DB_HOME and some other environment variables are not set. The best solution … Continue reading libdb2.so.1: cannot open shared object file: No such file or directory – … ibm_db.so

Circular dependency detected while autoloading constant

I recently ran into this frustrating and intermittent error in Ruby on Rails 4 (JRuby, actually): Circular dependency detected while autoloading constant Googling turned up several articles advising one to abide by the Rails conventions, but that was not the issue. The application I'm writing uses background threads. The problem shows up when trying to … Continue reading Circular dependency detected while autoloading constant