Fix missing dependency libmysqlclient.so.15 when installing MySQL-python via yum
CentOS 5 machines running a MySQL version newer than the one supplied with the OS may have trouble installing MySQL-python through yum or rpm. Both report that libmysqlclient_r.so.15, required by MySQL-python, is missing. Installing MySQL-python while ignoring the missing file still leaves it unusable.
The solution is to install MySQL-shared-compat, available from http://dev.mysql.com, with rpm. You can then install MySQL-python without the missing libmysqlclient_r.so.15 problem.
Installation command:
rpm -ivh MySQL-shared-compat-5.xx.xx.rhel5.x86_64.rpm