syslog-ng源码安装问题

时间:2021-08-18 05:04:30

title: 2019-4-22

tags: 新建

author:yangxiaoyi

问题:在源码安装syslog-ng软件时执行./configure遇到如下报错,

require eventlog 0.2.12 ....

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

问题原因:PKG_CONFIG_PATH变量问题,安装syslog-ng前需要eventlog程序包,但是安装过程中PKG_CONFIG_PATH需要指定eventlog包地址

解决方式:执行下列命令

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/eventlog/lib/pkgconfig/