Hi all,
Thank you for your help. I have been able to get ZoneMinder 1.24.0 running. Yippee!!!
I thought I'd document my problem in the hope it will help somebody else.
To recap, After installation I tried to start ZoneMinder using
and got this error...
Code: Select all
/usr/local/bin/zmfix: error while loading shared libraries: libswscale.so.0: cannot open shared object file: No such file or directory
Something was wrong with my install of ffmpeg. I had downloaded the latest source and compiled.
I noticed they were installed in the /usr/local/lib directory. I ran a ls on that directory and noticed many of them are links. Not important, but I thought interesting...
Code: Select all
# ls /usr/local/lib -l
total 53600
-rw-r--r-- 1 root root 38424016 2009-02-10 20:55 libavcodec.a
lrwxrwxrwx 1 root root 21 2009-02-10 20:55 libavcodec.so -> libavcodec.so.52.14.0
lrwxrwxrwx 1 root root 21 2009-02-10 20:55 libavcodec.so.52 -> libavcodec.so.52.14.0
-rwxr-xr-x 1 root root 4846768 2009-02-10 20:55 libavcodec.so.52.14.0
-rw-r--r-- 1 root root 501404 2009-02-10 20:55 libavdevice.a
lrwxrwxrwx 1 root root 21 2009-02-10 20:55 libavdevice.so -> libavdevice.so.52.1.0
lrwxrwxrwx 1 root root 21 2009-02-10 20:55 libavdevice.so.52 -> libavdevice.so.52.1.0
-rwxr-xr-x 1 root root 29416 2009-02-10 20:55 libavdevice.so.52.1.0
-rw-r--r-- 1 root root 9025812 2009-02-10 20:55 libavformat.a
lrwxrwxrwx 1 root root 22 2009-02-10 20:55 libavformat.so -> libavformat.so.52.26.0
lrwxrwxrwx 1 root root 22 2009-02-10 20:55 libavformat.so.52 -> libavformat.so.52.26.0
-rwxr-xr-x 1 root root 686552 2009-02-10 20:55 libavformat.so.52.26.0
-rw-r--r-- 1 root root 289908 2009-02-10 20:55 libavutil.a
lrwxrwxrwx 1 root root 20 2009-02-10 20:55 libavutil.so -> libavutil.so.49.14.0
lrwxrwxrwx 1 root root 20 2009-02-10 20:55 libavutil.so.49 -> libavutil.so.49.14.0
-rwxr-xr-x 1 root root 44744 2009-02-10 20:55 libavutil.so.49.14.0
-rw-r--r-- 1 root root 731416 2009-02-10 20:55 libswscale.a
lrwxrwxrwx 1 root root 19 2009-02-10 20:55 libswscale.so -> libswscale.so.0.6.1
lrwxrwxrwx 1 root root 19 2009-02-10 20:55 libswscale.so.0 -> libswscale.so.0.6.1
-rwxr-xr-x 1 root root 180960 2009-02-10 20:55 libswscale.so.0.6.1
drwxr-xr-x 3 root root 4096 2009-02-05 19:10 perl5
drwxr-xr-x 2 root root 4096 2009-02-10 20:55 pkgconfig
drwxr-xr-x 2 root root 4096 2009-02-10 20:55 vhook
On the ZoneMinder Forum nuck suggested running "ldd /usr/local/bin/zmfix" and it showed that there were four ffmpeg libraries it couldn't find...
Code: Select all
# ldd /usr/local/bin/zmfix
linux-vdso.so.1 => (0x00007fff62ffe000)
libbz2.so.1 => /lib64/libbz2.so.1 (0x0000003fafc00000)
libswscale.so.0 =>
libavformat.so.52 =>
libavcodec.so.52 =>
libavutil.so.49 =>
libpcre.so.0 => /lib64/libpcre.so.0 (0x0000003fbcc00000)
libcrypto.so.7 => /lib64/libcrypto.so.7 (0x0000003fadc00000)
libmysqlclient.so.15 => /usr/lib64/mysql/libmysqlclient.so.15 (0x0000003fa6000000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003fa5400000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003fa5000000)
libz.so.1 => /lib64/libz.so.1 (0x0000003fa5800000)
libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x0000003fb6600000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003fab000000)
libm.so.6 => /lib64/libm.so.6 (0x0000003fa4c00000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003faa000000)
libc.so.6 => /lib64/libc.so.6 (0x0000003fa4800000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000003fb4c00000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003fb3a00000)
libssl.so.7 => /lib64/libssl.so.7 (0x0000003faec00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003fa4400000)
libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x0000003fae000000)
libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x0000003facc00000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x0000003fac000000)
libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x0000003fac800000)
libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x0000003fad400000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x0000003fad800000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x0000003fabc00000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003fa5c00000)
I think I finally got this one. I created the file in "/etc/ld.so.conf.d/kaw_ffmpeg.conf"
It contains one line: "/usr/local/lib"
As Phil suggested I ran "ldconf" ( as su ) and then looking at the output of:
ldd /usr/local/bin/zmfix
I see all the ffmpeg libraries are found.
Code: Select all
# ldd /usr/local/bin/zmfix
linux-vdso.so.1 => (0x00007fff62ffe000)
libbz2.so.1 => /lib64/libbz2.so.1 (0x0000003fafc00000)
libswscale.so.0 => /usr/local/lib/libswscale.so.0 (0x0000000000c96000)
libavformat.so.52 => /usr/local/lib/libavformat.so.52 (0x000000000060f000)
libavcodec.so.52 => /usr/local/lib/libavcodec.so.52 (0x00007f7c5a53c000)
libavutil.so.49 => /usr/local/lib/libavutil.so.49 (0x0000000000110000)
libpcre.so.0 => /lib64/libpcre.so.0 (0x0000003fbcc00000)
libcrypto.so.7 => /lib64/libcrypto.so.7 (0x0000003fadc00000)
libmysqlclient.so.15 => /usr/lib64/mysql/libmysqlclient.so.15 (0x0000003fa6000000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003fa5400000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003fa5000000)
libz.so.1 => /lib64/libz.so.1 (0x0000003fa5800000)
libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x0000003fb6600000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003fab000000)
libm.so.6 => /lib64/libm.so.6 (0x0000003fa4c00000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003faa000000)
libc.so.6 => /lib64/libc.so.6 (0x0000003fa4800000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000003fb4c00000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003fb3a00000)
libssl.so.7 => /lib64/libssl.so.7 (0x0000003faec00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003fa4400000)
libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x0000003fae000000)
libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x0000003facc00000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x0000003fac000000)
libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x0000003fac800000)
libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x0000003fad400000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x0000003fad800000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x0000003fabc00000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003fa5c00000)
Now when I could start ZoneMinder using: zmpkg.pl start
Opened a new page in FireFox and pint it to "
http://localhost/zm/"
Yippee!!!!
I have added two Axis 207 Cameras using the "Preset" and things are moving along.
Thanks again Cordel, nuck and Phil.
Keith