Installation Steps of syslog-NG In Centos 5.8
stable Version which i used i.e syslog-ng 3.3.8
Download latest version from offical Site.
[root@rk download]# wget http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/3.3.8/source/eventlog_0.2.12.tar.gz
[root@rk syslog-ng-3.3.8]#wget http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/3.3.8/source/syslog-ng_3.3.8.tar.gz
Event log must install before syslog-ng setup.
[root@rk tmp]# tar -xvzf eventlog_0.2.12.tar.gz
[root@rk eventlog-0.2.12]# ./configure
[root@rk eventlog-0.2.12]# make
[root@rk eventlog-0.2.12]# make install
After installation you can find info under following dir.
[root@rk pkgconfig]# pwd
/usr/local/lib/pkgconfig
[root@indfumarket pkgconfig]# 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
IMP
Now export the path & configure Syslog-ng Otherwise it will through following error.
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.
Solution:-
[root@rk syslog-ng-3.3.8]# export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
Now Time to run syslog-ng Setup
After extract & change dir, run configure
[root@rk syslog-ng-3.3.8]# ./configure
[root@rk syslog-ng-3.3.8]# make
[root@rk syslog-ng-3.3.8]# make install
Version Info:
[root@rk syslog-ng-3.3.8]# syslog-ng -V
syslog-ng 3.3.8
Installer-Version: 3.3.8
Revision: ssh+git://algernon@git.balabit//var/scm/git/syslog-ng/syslog-ng-ose--mainline--3.3#master#d47d71f1fcdcd2befaa6393c95a0ad9856f99f1a
Compile-Date: Feb 13 2013 02:38:38
Default-Modules: affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat
Available-Modules: dbparser,basicfuncs,dummy,afuser,afprog,afsocket,confgen,syslogformat,affile,afsocket-tls,afsocket-notls,afmongodb,csvparser,convertfuncs
Enable-Debug: off
Enable-GProf: off
Enable-Memtrace: off
Enable-IPv6: on
Enable-Spoof-Source: off
Enable-TCP-Wrapper: on
Enable-Linux-Caps: on
Enable-Pcre: off
Done..Enjoy
P.S :- Keep it Simple
stable Version which i used i.e syslog-ng 3.3.8
Download latest version from offical Site.
[root@rk download]# wget http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/3.3.8/source/eventlog_0.2.12.tar.gz
[root@rk syslog-ng-3.3.8]#wget http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/3.3.8/source/syslog-ng_3.3.8.tar.gz
Event log must install before syslog-ng setup.
[root@rk tmp]# tar -xvzf eventlog_0.2.12.tar.gz
[root@rk eventlog-0.2.12]# ./configure
[root@rk eventlog-0.2.12]# make
[root@rk eventlog-0.2.12]# make install
After installation you can find info under following dir.
[root@rk pkgconfig]# pwd
/usr/local/lib/pkgconfig
[root@indfumarket pkgconfig]# 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
IMP
Now export the path & configure Syslog-ng Otherwise it will through following error.
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.
Solution:-
[root@rk syslog-ng-3.3.8]# export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
Now Time to run syslog-ng Setup
After extract & change dir, run configure
[root@rk syslog-ng-3.3.8]# ./configure
[root@rk syslog-ng-3.3.8]# make
[root@rk syslog-ng-3.3.8]# make install
Version Info:
[root@rk syslog-ng-3.3.8]# syslog-ng -V
syslog-ng 3.3.8
Installer-Version: 3.3.8
Revision: ssh+git://algernon@git.balabit//var/scm/git/syslog-ng/syslog-ng-ose--mainline--3.3#master#d47d71f1fcdcd2befaa6393c95a0ad9856f99f1a
Compile-Date: Feb 13 2013 02:38:38
Default-Modules: affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat
Available-Modules: dbparser,basicfuncs,dummy,afuser,afprog,afsocket,confgen,syslogformat,affile,afsocket-tls,afsocket-notls,afmongodb,csvparser,convertfuncs
Enable-Debug: off
Enable-GProf: off
Enable-Memtrace: off
Enable-IPv6: on
Enable-Spoof-Source: off
Enable-TCP-Wrapper: on
Enable-Linux-Caps: on
Enable-Pcre: off
Done..Enjoy
P.S :- Keep it Simple
0 comments:
Post a Comment