<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I'm not 100% sure but when we build our
packages our configure looks like:<br>
<br>
./configure --prefix=%{_prefix} --libdir=%{_libdir}
--with-module-dir=%{_libdir}/syslog-ng --mandir=%{_mandir}
--infodir=%{_prefix}/share/info \<br>
--sysconfdir=%{_sysconfdir}/syslog-ng
--localstatedir=/var/lib/syslog-ng \<br>
--enable-pcre \<br>
--enable-json \<br>
--disable-python \<br>
--with-java \<br>
PKG_CONFIG_PATH=%{_libdir}/pkgconfig:%{_prefix}/share/pkgconfig:/lib64/pkgconfig:/lib/pkgconfig
\<br>
--disable-tcp-wrapper \<br>
<br>
<br>
so we set PKG_CONFIG_PATH on the configure command line.<br>
<br>
his looks similar to what you have done. Did you perhaps forget to
"export" the PKG_CONFIG_PATH<br>
<br>
Evan.<br>
<br>
On 10/20/2015 02:48 PM, Ho, Ming wrote:<br>
</div>
<blockquote
cite="mid:1E84FCA9944B224EAB59481BB743457E552F8986@SW720MBPX063.visa.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
<font face="Helvetica" size="2"><span style="font-size:10pt;">
<div><font color="#555555">Hello,</font></div>
<div><font color="#555555"> </font></div>
<div><font color="#555555">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:<br>
# pwd<br>
/usr/local/lib<br>
# ll<br>
total 152<br>
-rw-r–r– 1 root root 91250 Oct 16 21:55 libevtlog.a<br>
-rwxr-xr-x 1 root root 957 Oct 16 21:55 libevtlog.la<br>
lrwxrwxrwx 1 root root 18 Oct 16 21:55 libevtlog.so
-> libevtlog.so.0.0.0<br>
lrwxrwxrwx 1 root root 18 Oct 16 21:55 libevtlog.so.0
-> libevtlog.so.0.0.0<br>
-rwxr-xr-x 1 root root 51128 Oct 16 21:55
libevtlog.so.0.0.0<br>
drwxr-x— 2 root root 4096 Oct 16 21:55 pkgconfig<br>
I also set PKG_CONFIG_PATH<br>
# echo $PKG_CONFIG_PATH<br>
/usr/local/lib/pkgconfig<br>
But when I ran “./configure” in the syslog-ng-3.7.1
directory, I got the following error:<br>
checking for clock_gettime… yes<br>
checking for EVTLOG… no<br>
configure: error: Package requirements (eventlog >=
0.2.12) were not met:<br>
No package ‘eventlog’ found<br>
Consider adjusting the PKG_CONFIG_PATH environment
variable if you<br>
installed software in a non-standard prefix.<br>
Alternatively, you may set the environment variables
EVTLOG_CFLAGS<br>
and EVTLOG_LIBS to avoid the need to call pkg-config.<br>
See the pkg-config man page for more details.</font></div>
<div><font color="#555555" face="Calibri" size="2"><span
style="font-size:11pt;"> </span></font></div>
<div><font color="#555555" face="Calibri" size="2"><span
style="font-size:11pt;"> </span></font></div>
<div><font color="#555555"># pwd<br>
/usr/local/lib/pkgconfig<br>
# ll<br>
total 4<br>
-rw-r–r– 1 root root 238 Oct 16 21:55 eventlog.pc<br>
# cat eventlog.pc<br>
prefix=/usr/local<br>
exec_prefix=${prefix}<br>
libdir=${exec_prefix}/lib<br>
includedir=${prefix}/include/eventlog<br>
Name: EventLog<br>
Description: General system logging format library<br>
Version: 0.2.12<br>
Cflags: -I${includedir}<br>
Libs: -L${libdir} -levtlog<br>
<br>
Appreciate anyone who can tell me what’s wrong</font></div>
<div><font color="#555555" face="Calibri" size="2"><span
style="font-size:11pt;"> </span></font></div>
<div><font color="#555555">Ming</font></div>
</span></font><br>
</blockquote>
<br>
</body>
</html>