Install on Linux Mint 17.3 Failed

Unpacking dolibarr (3.9.0-4) …
dpkg: dependency problems prevent configuration of dolibarr:
dolibarr depends on libapache2-mod-php5 | libapache2-mod-php5filter | php5-cgi | php5-fpm | php5; however:
Package libapache2-mod-php5 is not configured yet.
Package libapache2-mod-php5filter is not installed.
Package php5-cgi is not installed.
Package php5-fpm is not installed.
Package php5 is not configured yet.
dolibarr depends on php-mail-mime; however:
Package php-mail-mime is not configured yet.

Run
apt-get install -f
to install missing dependencies

Had to install manually the dependencies then totally delete Dolibarr and reinstall it might have been just a quirk on the laptop it was installed on to run in local host. After deleting and re-installing it configured itself - One note I had to install the version on the Linux mint repository first and then upgrade to get 3.9 to make this. work. That probably had to do with the way that the deb installer works and installs it in /usr/dolibarr/htdocs rather than the normal /var/www/html location but it is now working never the less. Thanks for the help