Cannot install opendkim because cannot find bsd/string.h Cannot install opendkim because cannot find bsd/string.h linux linux

Cannot install opendkim because cannot find bsd/string.h


You need to install libbsd-dev

if you are using ubuntu

sudo apt-get install  libbsd-dev

if you are using centOS

sudo yum install  libbsd-devel

Hope this helps you


I realize an answer has already been selected. But this worked for me on a new CentOS 6.x installation on DigitalOcean.

  1. Install RHEL EPEL Repos

    wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmwget http://rpms.famillecollet.com/enterprise/remi-release-6.rpmsudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

  2. Yum for libbsd-devel

    yum install libbsd-devel

Reference:Installing RHEL EPEL Repo on Centos 5.x or 6.x,pkgs.org


Also a note even though this has been closed - Amazon EC2 Linux also needs the EPEL repos...

yum-config-manager --enable epel > /dev/nullyum updateyum install libbsd-devel