Library not loaded: libmysqlclient.16.dylib error when trying to run ‘rails server’ on OS X 10.6 with mysql2 gem

I’ve been struggling with this for some time. I’ve installed Rails 3, gem, mysql on my Snow Leopard machine. All was going well until I created my first project and tried to run rails server Upon running this I get: jontybrook$ rails server /Library/Ruby/Gems/1.8/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle: dlopen(/Library/Ruby/Gems/1.8/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.16.dylib (LoadError) Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle Reason: … Read more

What does “WARN Could not determine content-length of response body.” mean and how to I get rid of it?

Since upgrading to Rails 3.1 I’m seeing this warning message in my development log: WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true What does this mean and how can I remove it? Is it a problem? 9 Answers 9