syslog-ng 3.7.1 OSE compile error
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
I'm not 100% sure but when we build our packages our configure looks like: ./configure --prefix=%{_prefix} --libdir=%{_libdir} --with-module-dir=%{_libdir}/syslog-ng --mandir=%{_mandir} --infodir=%{_prefix}/share/info \ --sysconfdir=%{_sysconfdir}/syslog-ng --localstatedir=/var/lib/syslog-ng \ --enable-pcre \ --enable-json \ --disable-python \ --with-java \ PKG_CONFIG_PATH=%{_libdir}/pkgconfig:%{_prefix}/share/pkgconfig:/lib64/pkgconfig:/lib/pkgconfig \ --disable-tcp-wrapper \ so we set PKG_CONFIG_PATH on the configure command line. his looks similar to what you have done. Did you perhaps forget to "export" the PKG_CONFIG_PATH Evan. On 10/20/2015 02:48 PM, Ho, Ming wrote:
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
participants (2)
-
Evan Rempel
-
Ho, Ming