I've got two VMs: CentOS 6.5 and Ubuntu Server 14.04. Neither of their package management systems has the MySQL 5.1 libraries available (they both have MySQL 5.5). I need to know how to install the MySQL 5.1 libraries on each of them. It can be by downloading and compiling them (although I wasn't able to find 5.1 on the MySQL site) or by finding old packages that will work with either package management system (yum/apt respectively).
The underlying reason is that I need to compile a program against the 5.1 libraries. It will not work with newer versions of MySQL. (For complicated reasons, the program cannot be modified to work with newer versions of MySQL.)
If it makes any difference, the VMs are in Microsoft's Azure system.