Discussion:
[syslog-ng] R: Re: I: Re: R: Re: Compiling syslog-ng on Ubuntu.
a***@libero.it
2011-11-16 19:03:38 UTC
Permalink
***@ubuntu:/usr/local/sbin$ ./syslog-ng --version
./syslog-ng: error while loading shared libraries: libsyslog-ng-3.3.2.so:
cannot open shared object file: No such file or directory
----Messaggio originale----
Data: 16/11/2011 19.56
hu>
Ogg: Re: [syslog-ng] I: Re: R: Re: Compiling syslog-ng on Ubuntu.
I'm trying to compile 3.3.2.
It's installed under /usr/local, not /usr. So you won't find it under
/usr/sbin, try /usr/local/sbin instead.
--
|8]
Lay, James
2011-11-16 20:06:01 UTC
Permalink
-----Original Message-----
Sent: Wednesday, November 16, 2011 12:04 PM
Subject: [syslog-ng] R: Re: I: Re: R: Re: Compiling syslog-ng on
Ubuntu.
cannot open shared object file: No such file or directory
That looks promising :)

Ok...do this:

"sudo ldconfig"

And while you're in that /usr/local/sbin directory, what's the output
of:

"ldd syslog-ng"

James
Gergely Nagy
2011-11-16 21:32:54 UTC
Permalink
Post by a***@libero.it
cannot open shared object file: No such file or directory
You also need to add /usr/local/lib to your library load path. The
easiest way is to add that dir to /etc/ld.so.conf.
--
|8]
a***@libero.it
2011-11-17 09:15:06 UTC
Permalink
Goodmorning.

This is my ld.so.conf

***@ubuntu:/etc$ more ld.so.conf
include /etc/ld.so.conf.d/*.conf
***@ubuntu:/etc$

I need to ad another include. If so, This does not solve.
----Messaggio originale----
Data: 16/11/2011 22.32
Ogg: Re: [syslog-ng] R: Re: I: Re: R: Re: Compiling syslog-ng on Ubuntu.
Post by a***@libero.it
cannot open shared object file: No such file or directory
You also need to add /usr/local/lib to your library load path. The
easiest way is to add that dir to /etc/ld.so.conf.
--
|8]
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-
ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq
a***@libero.it
2011-11-17 09:00:20 UTC
Permalink
***@ubuntu:~$ sudo ldconfig
[sudo] password for ameconi:
***@ubuntu:~$ cd /usr/local/sbin
***@ubuntu:/usr/local/sbin$ ldd syslog-ng
linux-gate.so.1 => (0xb7762000)
libsyslog-ng-3.3.2.so => /usr/local/lib/libsyslog-ng-3.3.2.so
(0xb76ec000)
libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb76d4000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb76cf000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb76ca000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb76c1000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7610000)
libevtlog.so.0 => /usr/local/lib/libevtlog.so.0 (0xb760c000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7608000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb75ef000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb74a0000)
/lib/ld-linux.so.2 (0xb7763000)
libpcre.so.3 => /usr/lib/libpcre.so.3 (0xb7479000)
----Messaggio originale----
Data: 16/11/2011 21.06
Ogg: RE: [syslog-ng] R: Re: I: Re: R: Re: Compiling syslog-ng on Ubuntu.
-----Original Message-----
Sent: Wednesday, November 16, 2011 12:04 PM
Subject: [syslog-ng] R: Re: I: Re: R: Re: Compiling syslog-ng on
Ubuntu.
cannot open shared object file: No such file or directory
That looks promising :)
"sudo ldconfig"
And while you're in that /usr/local/sbin directory, what's the output
"ldd syslog-ng"
James
a***@libero.it
2011-11-17 09:28:08 UTC
Permalink
Sorry!
With this addendum into ld.so.conf

***@ubuntu:/etc$ more ld.so.conf
include /etc/local/sbin
include /etc/ld.so.conf.d/*.conf
***@ubuntu:/etc$

I can obtain the version information

***@ubuntu:/usr/local/sbin$ sudo syslog-ng --version
syslog-ng 3.3.2
Installer-Version: 3.3.2
Revision: ssh+git://***@git.balabit//var/scm/git/syslog-ng/syslog-ng-ose--
mainline--3.3#master#555a5cead6723132e6aa89f52365bb40582c8ecc
Compile-Date: Nov 15 2011 17:55:58
Default-Modules: affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,
syslogformat
Available-Modules: dbparser,syslogformat,basicfuncs,afsocket-notls,afuser,
afmongodb,csvparser,afsocket,afprog,affile,confgen,convertfuncs,dummy
Enable-Debug: off
Enable-GProf: off
Enable-Memtrace: off
Enable-IPv6: on
Enable-Spoof-Source: on
Enable-TCP-Wrapper: off
Enable-Linux-Caps: off
Enable-Pcre: off
----Messaggio originale----
Data: 16/11/2011 22.32
Ogg: Re: [syslog-ng] R: Re: I: Re: R: Re: Compiling syslog-ng on Ubuntu.
Post by a***@libero.it
cannot open shared object file: No such file or directory
You also need to add /usr/local/lib to your library load path. The
easiest way is to add that dir to /etc/ld.so.conf.
--
|8]
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-
ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq
a***@libero.it
2011-11-17 11:06:37 UTC
Permalink
How can I install the new service now?
Thanks.
----Messaggio originale----
Data: 16/11/2011 22.32
Ogg: Re: [syslog-ng] R: Re: I: Re: R: Re: Compiling syslog-ng on Ubuntu.
Post by a***@libero.it
cannot open shared object file: No such file or directory
You also need to add /usr/local/lib to your library load path. The
easiest way is to add that dir to /etc/ld.so.conf.
--
|8]
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-
ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq
Gergely Nagy
2011-11-17 11:10:58 UTC
Permalink
Post by a***@libero.it
How can I install the new service now?
I would suggest reading our excellent administrator's guide, available
at:
http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.3-guides/syslog-ng-ose-v3.3-guide-admin-en.html/bk01-toc.html
--
|8]
a***@libero.it
2011-11-17 11:59:24 UTC
Permalink
Sorry, but I need more help.
I need to install syslog-ng in server mode and I'm not able to find the
installer script.
Thanks.
----Messaggio originale----
Data: 17/11/2011 12.10
hu>
Ogg: Re: [syslog-ng] R: Re: R: Re: I: Re: R: Re: Compiling syslog-ng on
Ubuntu.
Post by a***@libero.it
How can I install the new service now?
I would suggest reading our excellent administrator's guide, available
http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.3-
guides/syslog-ng-ose-v3.3-guide-admin-en.html/bk01-toc.html
--
|8]
Gergely Nagy
2011-11-17 12:15:09 UTC
Permalink
Post by a***@libero.it
Sorry, but I need more help.
I need to install syslog-ng in server mode and I'm not able to find the
installer script.
With make install, it is already installed. If you want to run it at
boot time, you'll need to write an init script (there's an example at
debian/syslog-ng.init that should be suitable for Ubuntu hardy
aswell), and enable it (the manual page of update-rc.d can help with
that).

Past that, you need a config, which should already be installed after
make install. You can customise it based on the info in the admin
guide.
--
|8]
Loading...