Cannot start syslog-ng-3.3.1
Hello I installed syslog-ng-3.3.1 from source on debian lenny. And when I start it, it says "error while loading shared librairies: libsyslog-ng-3.3.1.so: cannot open shared object file: No such file or directory" though this file is in /usr/local/syslog-ng/lib/ libsyslog-ng-3.3.1.so Anyone can help?
On Fri, Jan 27, 2012 at 03:50:38PM +0300, Hery Fanomezantsoa wrote:
Hello I installed syslog-ng-3.3.1 from source on debian lenny. And when I start it, it says "error while loading shared librairies: libsyslog-ng-3.3.1.so: cannot open shared object file: No such file or directory" though this file is in /usr/local/syslog-ng/lib/libsyslog-ng-3.3.1.so Either put /usr/local/syslog-ng/lib/ into the env variable LD_LIBRARY_PATH before running or into /etc/ld.so.conf and run ldconfig.
I recommend the first one: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/syslog-ng/lib/ /usr/local/syslog-ng/sbin/syslog-ng <opts> for testing and putting the following lines to the beginnning of init script, to let it work properly: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/syslog-ng/lib/ export LD_LIBRARY_PATH -- Pal Tamas/Folti folti@balabit.hu
Ok thanks, I did it but there is another problem "Error opening plugin module; module='afsql', error='/usr/local/syslog-ng/lib/syslog-ng/libafsql.so: undefined symbol: dbi_result_free' but syslog-ng is running I installed it using this: ./configure --prefix=/usr/local/syslog-ng \
EVTLOG_CFLAGS="-I/usr/local/eventlog/include/eventlog" \ EVTLOG_LIBS="-L/usr/local/eventlog/lib -levtlog" \ GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" \ GLIB_LIBS="-L/usr/lib -lglib-2.0 -lintl" \ LIBDBI_CFLAGS="-I/usr/include/dbi" \ LIBDBI_LIBS="-L/usr/lib" \ --enable-sql \ --enable-mixed-linking
On Fri, 2012-01-27 at 16:09 +0300, Hery Fanomezantsoa wrote:
Ok thanks, I did it but there is another problem "Error opening plugin module; module='afsql', error='/usr/local/syslog-ng/lib/syslog-ng/libafsql.so: undefined symbol: dbi_result_free' but syslog-ng is running
I installed it using this: ./configure --prefix=/usr/local/syslog-ng \
EVTLOG_CFLAGS="-I/usr/local/eventlog/include/eventlog" \ EVTLOG_LIBS="-L/usr/local/eventlog/lib -levtlog" \ GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" \ GLIB_LIBS="-L/usr/lib -lglib-2.0 -lintl" \ LIBDBI_CFLAGS="-I/usr/include/dbi" \ LIBDBI_LIBS="-L/usr/lib" \ --enable-sql \ --enable-mixed-linking
syslog-ng runs, but your SQL destination probably doesn't work. That the error message is trying to tell you. Most probably libdbi couldn't be found. -- Bazsi
participants (3)
-
Balazs Scheidler
-
Hery Fanomezantsoa
-
Pal Tamas