[syslog-ng] syslog-ng 3.7.1 OSE compile error

Ho, Ming Mingho at visa.com
Tue Oct 20 23:48:03 CEST 2015


Hello,

I followed syslog-ng 3.7 admin guide to compile eventlog-0.2.12+20120504+1700 on a Redhat 6.5 server and it created the following directory:
# pwd
/usr/local/lib
# ll
total 152
-rw-r-r- 1 root root 91250 Oct 16 21:55 libevtlog.a
-rwxr-xr-x 1 root root   957 Oct 16 21:55 libevtlog.la
lrwxrwxrwx 1 root root    18 Oct 16 21:55 libevtlog.so -> libevtlog.so.0.0.0
lrwxrwxrwx 1 root root    18 Oct 16 21:55 libevtlog.so.0 -> libevtlog.so.0.0.0
-rwxr-xr-x 1 root root 51128 Oct 16 21:55 libevtlog.so.0.0.0
drwxr-x- 2 root root  4096 Oct 16 21:55 pkgconfig
I also set PKG_CONFIG_PATH
# echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig
But when I ran "./configure" in the  syslog-ng-3.7.1 directory, I got the following error:
checking for clock_gettime... yes
checking for EVTLOG... no
configure: error: Package requirements (eventlog >= 0.2.12) were not met:
No package 'eventlog' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables EVTLOG_CFLAGS
and EVTLOG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


# pwd
/usr/local/lib/pkgconfig
# ll
total 4
-rw-r-r- 1 root root 238 Oct 16 21:55 eventlog.pc
# cat eventlog.pc
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/eventlog
Name: EventLog
Description: General system logging format library
Version: 0.2.12
Cflags: -I${includedir}
Libs: -L${libdir} -levtlog

Appreciate anyone who can tell me what's wrong

Ming

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20151020/97ca4669/attachment.htm 


More information about the syslog-ng mailing list