Apologies for any incorrect terminology.
I'm using Chef to automate server deployment.
I've built an AMI that has Ruby 1.9.3 compiled from source and then chef takes over from that point.
When ruby is compiled from source libruby.so.1.9 gets added to /usr/lib.
The problem is that require 'mysql' fails during the chef run because it's looking for libruby-1.9.1.so.1.9 which does not exist.
I can fix this by running
sudo apt-get install libruby1.9.1 but I think there's probably a more elegant solution, ideally one that I can add to the AMI or the chef deploy that fixes this.