-   Linux - Newbie (
-   -   Syslog-ng eventlog error during compiling (

bonedragon 08-15-2012 12:14 AM

Syslog-ng eventlog error during compiling
I'm trying to install syslog-ng 3.3 on ubuntu 10.04 by compiling from source.
but every time i run the ./configure command I get this error

checking for EVTLOG... no
configure: error: in `/syslog-ng-3.3.5':
configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

I have already installed eventlog from the balabit website. i have tried everything and am still lost.
Any help will be greatly appreciated

knudfl 08-15-2012 03:03 AM

Welcome to LQ.

If you used plain './configure' for 'eventlog', it installs to /usr/local/.
The "package config file" : /usr/local/lib/pkgconfig/eventlog.pc

To use an eventlog install in /usr/local/, you can do :

export PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig/ && ./configure

bonedragon 08-15-2012 09:02 PM

hi knudfl
i tried the commands you suggested but i still get the same error, any other suggestions?

knudfl 08-16-2012 04:04 AM

Well, the most simple approach is to configure and install eventlog
with : ./configure --prefix=/usr && make && sudo make install

Then you should be sure that all *eventlog* will be found.

bonedragon 08-16-2012 05:34 PM

hi knudfl
thanks for your help, I managed to solve the problem.
turns out the PKG_CONFIG script was not installed. once i installed that everything worked fine.

All times are GMT -5. The time now is 09:36 AM.