我正在尝试使用数据库支持在服务器上安装OSSEC HIDS(以前使用过邮件通知)。我已经有了PostgreSQL和其他数据库,但当我尝试使用数据库支持编译OSSEC时(如本指南中所示:http://ossec-docs.readthedocs.io/en/latest/manual/output/database-output.html),我得到以下错误(当运行命令#makesetdb时):
Error: MySQL client libraries not installed.
Error: DB libraries not installed.
尝试忽略它并使用instal.sh脚本安装它,它运行良好,但当我将数据库选项添加到配置文件中时,我得到:
Starting OSSEC HIDS v2.8.3 (by Trend Micro Inc.)...
2016/06/06 18:34:58 ossec-dbd(5207): ERROR: OSSEC not compiled with support for 'postgresql'.
2016/06/06 18:34:58 ossec-dbd(1202): ERROR: Configuration error at '/var/ossec/etc/ossec.conf'. Exiting.
您必须安装libpq-dev
。使用此:
sudo apt-get-y安装libpq dev
此外,为了安全起见,还安装以下软件包:
sudo apt-get install postgresql client postgresql client common
如果您仍面临任何问题,请告诉我。它对我来说很好。