You need to install db4-devel cyrus-sasl-devel
For others passing by :
apt-get install libsasl2-modules libsasl2-dev libdb-dev
Here are some problems during another test install :
init-scripts :
insserv: warning: script 'K01da-popb4smtp' missiing LSB tags and overrides
insserv: warning: script 'K01directadmin' missiing LSB tags and overrides
insserv: warning: script 'da-popb4smtp' missiing LSB tags and overrides
insserv: warning: script 'directadmin' missiing LSB tags and overrides
Apache :
httpd : Syntax error on line 133 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/directadmin-vhosts.conf: Could not open configuration file /usr/local/directadmin/data/users/admin/httpd.conf: No such file or directory.
Exim :
Hunk #1 FAILED at 608.
Hunk #2 FAILED at 770.
Hunk #3 FAILED at 782.
3 out of 3 hunks FAILED -- saving rejects to file /etc/exim.conf.rej
Vm-Pop3D:
Can't open /etc/inetd.conf: No such file or directory.
inetd: no process found
./build: line 7753: /etc/init.d/vm-pop3d: No such file or directory
chmod: cannot access `/etc/init.d/vm-pop3d': No such file or directory
Dovecot :
Restarting Dovecot.
./Build: line 7780: /etc/init.d/dovecot: No such file or directory
Restarting Exim.
Shutting down exim: /etc/init.d/exim: line 42: kill: (3721) - No such process
mv: cannot stat `/etc/dovecot.conf': No such file or directory
Restarting dovecot.
Shutting down dovecot:
Starting dovecot:
cat: /usr/local/directadmin/data/users/admin/ticket.conf: No such file or directory
cat: /usr/local/directadmin/data/users/admin/ticket.conf: No such file or directory
grep: /usr/local/directadmin/conf/mysql.conf: No such file or directory
grep: /usr/local/directadmin/conf/mysql.conf: No such file or directory
AtMail :
Inserting data to mysql and creating database/user for atmail...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
RoundCube :
Inserting data to mysql and creating database/user for roundcube...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
ERROR: Error connecting to database: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>Roundcube Webmail :: ERROR</title>
<link rel="stylesheet" type="text/css" href="skins/larry/common.css" />
</head>
<body>
<table border="0" cellsapcing="0" cellpadding="0" width="100%" height="80%"><tr><td align="center">
<div>
<h3 class="error-title">SERVICE CURRENTLY NOT AVAILABLE!</h3>
<p class="error-text">Error No. [500]</p>
</div>
</td></tr></table>
</body>
Installation Says ended successfully, yet on 1rst connection :
exim Process is stopped 0 B Start Stop Restart Reload
mysqld Process is stopped 0 B Start Stop
nginx Process is stopped 0 B Start Stop Restart Reload
proftpd Process is stopped 0 B Start Stop Restart
And when trying to start them :
Exim : throws following log in mail.err in /var/log
Jun 24 11:29:09 uranus exim[7309]: 2013-06-24 11:29:09 exim 4.80.1 daemon started: pid=7309, -q15m, listening for SMTP on port 25 (IPv6 and IPv4)
Jun 24 11:29:09 uranus exim[7309]: 2013-06-24 11:29:09 Cannot open main log file "/var/log/exim/mainlog": Permission denied: euid=8 egid=8
Jun 24 11:29:09 uranus exim[7309]: exim: could not open panic log - aborting: see message(s) above
And indeed : /var/log/exim does not exist !
Had to create it : /var/log/exim/ with chown mail:mail to it for exim to work...
For others binaries : missing init.d script !