Missing libraries when trying to compile 3.0
I'm trying to get 3.0 going - I'm running 2.2.6 currently. configure says I'm missing some libraries: ./configure ... checking for static OpenSSL libraries... no configure: error: static OpenSSL libraries not found (libssl.a and libcrypto.a), either link OpenSSL statically using the --enable-dynamic-linking, or install a static OpenSSL [root@princeton syslog-ng-3.0.1]# ...but the libraries are there: [root@princeton syslog-ng-3.0.1]# locate libssl.a libcrypto.a /usr/lib/libcrypto.a /usr/lib/libssl.a /usr/lib64/libcrypto.a /usr/lib64/libssl.a However, I used the --enable-dynamic-linking for the configure. It configured and compiled just fine. When I went to run, I got this: [root@princeton syslog-ng-3.0.1]# service syslog-ng start Starting system logger: /usr/local/sbin/syslog-ng: error while loading shared libraries: libevtlog.so.0: cannot open shared object file: No such file or directory [FAILED] even though _those_ libraries are there: [root@princeton syslog-ng-3.0.1]# ls -la /usr/local/lib/libevtlog.* -rw-r--r-- 1 root root 65048 Feb 11 11:50 /usr/local/lib/libevtlog.a -rwxr-xr-x 1 root root 822 Feb 11 11:50 /usr/local/lib/libevtlog.la lrwxrwxrwx 1 root root 18 Feb 11 11:50 /usr/local/lib/libevtlog.so -> libevtlog.so.0.0.0 lrwxrwxrwx 1 root root 18 Feb 11 11:50 /usr/local/lib/libevtlog.so.0 -> libevtlog.so.0.0.0 -rwxr-xr-x 1 root root 45369 Feb 11 11:50 /usr/local/lib/libevtlog.so.0.0.0 I'm not sure where to go from here - pointers in the right direction greatly appreciated. -- Tim Boyer Denman Tire Corporation tim@denmantire.com
Tim, Make sure /usr/local/lib is listed somewhere in /etc/ld.so.conf.d/* (or wherever ld path is defined on your system) Add it if it's not. Then run ldconfig. Liam Tim Boyer wrote:
I'm trying to get 3.0 going - I'm running 2.2.6 currently. configure says I'm missing some libraries:
./configure ... checking for static OpenSSL libraries... no configure: error: static OpenSSL libraries not found (libssl.a and libcrypto.a), either link OpenSSL statically using the --enable-dynamic-linking, or install a static OpenSSL [root@princeton syslog-ng-3.0.1]#
...but the libraries are there:
[root@princeton syslog-ng-3.0.1]# locate libssl.a libcrypto.a /usr/lib/libcrypto.a /usr/lib/libssl.a /usr/lib64/libcrypto.a /usr/lib64/libssl.a
However, I used the --enable-dynamic-linking for the configure. It configured and compiled just fine.
When I went to run, I got this:
[root@princeton syslog-ng-3.0.1]# service syslog-ng start Starting system logger: /usr/local/sbin/syslog-ng: error while loading shared libraries: libevtlog.so.0: cannot open shared object file: No such file or directory [FAILED]
even though _those_ libraries are there:
[root@princeton syslog-ng-3.0.1]# ls -la /usr/local/lib/libevtlog.* -rw-r--r-- 1 root root 65048 Feb 11 11:50 /usr/local/lib/libevtlog.a -rwxr-xr-x 1 root root 822 Feb 11 11:50 /usr/local/lib/libevtlog.la lrwxrwxrwx 1 root root 18 Feb 11 11:50 /usr/local/lib/libevtlog.so -> libevtlog.so.0.0.0 lrwxrwxrwx 1 root root 18 Feb 11 11:50 /usr/local/lib/libevtlog.so.0 -> libevtlog.so.0.0.0 -rwxr-xr-x 1 root root 45369 Feb 11 11:50 /usr/local/lib/libevtlog.so.0.0.0
I'm not sure where to go from here - pointers in the right direction greatly appreciated.
-- Liam Kirsher PGP: http://liam.numenet.com/pgp/
Liam - Hmmm. Can't believe I've never run into this before! Thanks much... -- tim --
Tim,
Make sure /usr/local/lib is listed somewhere in /etc/ld.so.conf.d/* (or wherever ld path is defined on your system) Add it if it's not.
Then run ldconfig.
Liam
Tim Boyer wrote:
I'm trying to get 3.0 going - I'm running 2.2.6 currently. configure says I'm missing some libraries:
./configure ... checking for static OpenSSL libraries... no configure: error: static OpenSSL libraries not found (libssl.a and libcrypto.a), either link OpenSSL statically using the --enable-dynamic-linking, or install a static OpenSSL [root@princeton syslog-ng-3.0.1]#
...but the libraries are there:
[root@princeton syslog-ng-3.0.1]# locate libssl.a libcrypto.a /usr/lib/libcrypto.a /usr/lib/libssl.a /usr/lib64/libcrypto.a /usr/lib64/libssl.a
However, I used the --enable-dynamic-linking for the configure. It configured and compiled just fine.
When I went to run, I got this:
[root@princeton syslog-ng-3.0.1]# service syslog-ng start Starting system logger: /usr/local/sbin/syslog-ng: error while loading shared libraries: libevtlog.so.0: cannot open shared object file: No such file or directory [FAILED]
even though _those_ libraries are there:
[root@princeton syslog-ng-3.0.1]# ls -la /usr/local/lib/libevtlog.* -rw-r--r-- 1 root root 65048 Feb 11 11:50 /usr/local/lib/libevtlog.a -rwxr-xr-x 1 root root 822 Feb 11 11:50 /usr/local/lib/libevtlog.la lrwxrwxrwx 1 root root 18 Feb 11 11:50 /usr/local/lib/libevtlog.so -> libevtlog.so.0.0.0 lrwxrwxrwx 1 root root 18 Feb 11 11:50 /usr/local/lib/libevtlog.so.0 -> libevtlog.so.0.0.0 -rwxr-xr-x 1 root root 45369 Feb 11 11:50 /usr/local/lib/libevtlog.so.0.0.0
I'm not sure where to go from here - pointers in the right direction greatly appreciated.
-- Liam Kirsher PGP: http://liam.numenet.com/pgp/
______________________________________________________________ ________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
On Wed, 2009-02-11 at 21:26 -0500, Tim Boyer wrote:
I'm trying to get 3.0 going - I'm running 2.2.6 currently. configure says I'm missing some libraries:
./configure ... checking for static OpenSSL libraries... no configure: error: static OpenSSL libraries not found (libssl.a and libcrypto.a), either link OpenSSL statically using the --enable-dynamic-linking, or install a static OpenSSL [root@princeton syslog-ng-3.0.1]#
...but the libraries are there:
[root@princeton syslog-ng-3.0.1]# locate libssl.a libcrypto.a /usr/lib/libcrypto.a /usr/lib/libssl.a /usr/lib64/libcrypto.a /usr/lib64/libssl.a
openssl has further external dependencies which must be available in case you want to link to it statically. Your config.log should contain more information. Without seeing that, I guess that you are lacking the static version of libz.a the gzip compression library. I've added a patch to clarify the error message.
However, I used the --enable-dynamic-linking for the configure. It configured and compiled just fine.
When I went to run, I got this:
[root@princeton syslog-ng-3.0.1]# service syslog-ng start Starting system logger: /usr/local/sbin/syslog-ng: error while loading shared libraries: libevtlog.so.0: cannot open shared object file: No such file or directory [FAILED]
even though _those_ libraries are there:
[root@princeton syslog-ng-3.0.1]# ls -la /usr/local/lib/libevtlog.* -rw-r--r-- 1 root root 65048 Feb 11 11:50 /usr/local/lib/libevtlog.a -rwxr-xr-x 1 root root 822 Feb 11 11:50 /usr/local/lib/libevtlog.la lrwxrwxrwx 1 root root 18 Feb 11 11:50 /usr/local/lib/libevtlog.so -> libevtlog.so.0.0.0 lrwxrwxrwx 1 root root 18 Feb 11 11:50 /usr/local/lib/libevtlog.so.0 -> libevtlog.so.0.0.0 -rwxr-xr-x 1 root root 45369 Feb 11 11:50 /usr/local/lib/libevtlog.so.0.0.0
I'm not sure where to go from here - pointers in the right direction greatly appreciated.
Just as Liam has already answered, LD_LIBRARY_PATH or /etc/ld.so.conf should be of help here. earlier /usr/local/lib was listed in the dynamic library search path by default, recent distributions seem to have removed that. -- Bazsi
participants (3)
-
Balazs Scheidler
-
Liam Kirsher
-
Tim Boyer