The libmysqlclient18.1 packages on wheezy and squeeze are broken. These packages don't install /usr/lib/libmysqlclient_r.so.18 but the libmysqlclient-dev package has a symbolic link from /usr/lib/libmysqlclient_r.so to libmysqlclient_r.so.18 which does not exist. This file should exist in the libmysqlclient18.1 package.
The libmysqlclient18.1 packages on wheezy and squeeze are broken. These packages don't install /usr/lib/ libmysqlclient_ r.so.18 but the libmysqlclient-dev package has a symbolic link from /usr/lib/ libmysqlclient_ r.so to libmysqlclient_ r.so.18 which does not exist. This file should exist in the libmysqlclient18.1 package.
Quick fix:
ln -sv libmysqlclient_ r.so.18. 1.0 /usr/lib/ libmysqlclient_ r.so.18
See also: libmysqlclient. so.18.1. 0 libmysqlclient_ r.so.18. 1.0
$ dpkg-query -L libmysqlclient18.1 | fgrep /usr/lib/
/usr/lib/
/usr/lib/
Compare with Debian's native libmysqlclient16: libmysqlclient_ r.so.16. 0.0 libmysqlclient. so.16.0. 0 libmysqlclient_ r.so.16 libmysqlclient. so.16
$ dpkg-query -L libmysqlclient16 | fgrep /usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
Do NOT package the file with libmysqlclient-dev, package it with libmysqlclient18.1.