libdb5.1 software package provides Berkeley v5.1 Database Libraries [runtime], you can install in your Debian 7 (Wheezy) by running the commands given below on the terminal,
$ sudo apt-get update $ sudo apt-get install libdb5.1
libdb5.1 is installed in your system.
Make ensure the libdb5.1 package were installed using the commands given below,
$ sudo dpkg-query -l | grep libdb5.1 *
You will get with libdb5.1 package name, version, architecture and description in a table
| Distro | Debian 7 wheezy |
| Section | Libraries |
| Package | libdb5.1 |
| Version | 5.1.29-5 |
| Description | Berkeley v5.1 Database Libraries [runtime] |
| Sub Section | libs |