I was trying to deploy my rails app on a chef-managed server today and came across an issue with the pg gem.
Postgres 9.3.2 (libpq5 and libpq-dev are both installed)
Ubuntu-server 12.04 LTS 32 bit version
Here are the error logs:
Ruby is installed through omnibus using poise-ruby:
Postgres is installed through a popular chef cookbook:
Here's how another postgres cookbook hacks around the broken pg issue:
A couple of us were talking about it on IRC and the conclusion is...
- The pg gem bypasses the RbConfig settings about which openssl it was compiled against
- It is certainly a problem with the pg gem and not how Ruby is installed
If you're on freenode then you might want to contact coderanger in #chef or workmad3 in #chef because they know much more about this than me.