Page 5 of 5

Posted: Fri May 30, 2008 10:51 am
by williamberg
see my shell:

Code: Select all

williamberg@ubuntu:~$ sudo bash
[sudo] password for williamberg: 
root@ubuntu:~# export LD_LIBRARY_PATH=/opt/lib
root@ubuntu:~# /etc/init.d/zm start
Starting ZoneMinder: /usr/local/bin/zmfix: error while loading shared libraries: libswscale.so.0: cannot open shared object file: No such file or directory
failure

root@ubuntu:~# cd /opt/lib
root@ubuntu:/opt/lib# ls
libavcodec.a           libavformat.so          libpostproc.so.51
libavcodec.so          libavformat.so.52       libpostproc.so.51.1.0
libavcodec.so.51       libavformat.so.52.14.0  libswscale.a
libavcodec.so.51.57.0  libavutil.a             libswscale.so
libavdevice.a          libavutil.so            libswscale.so.0
libavdevice.so         libavutil.so.49         libswscale.so.0.5.1
libavdevice.so.52      libavutil.so.49.6.0     pkgconfig
libavdevice.so.52.0.0  libpostproc.a           vhook
libavformat.a          libpostproc.so
root@ubuntu:/opt/lib# 

Ugh

Posted: Mon Jun 02, 2008 2:14 am
by PeterHoward
I wish I could suggest something further here, but am largely stumped.

Could you send me the contents of your /etc/init.d/zm file? (I want to double check). Also, could you try running zmfix from the command line rather than the init script?

PJH

Posted: Mon Jun 02, 2008 4:51 pm
by Ternitzer
I had the same problem.

You can run:

Code: Select all

sudo cp -r /opt/lib/* /usr/lib/

Once i did that it started working for me.

Posted: Tue Jun 03, 2008 12:07 am
by PeterHoward
Ternitzer wrote:I had the same problem.

You can run:

Code: Select all

sudo cp -r /opt/lib/* /usr/lib/

Once i did that it started working for me.
I'd rather link them than copy them. But yes, that should work too.

(I'd still like to know why LD_LIBRARY_PATH isn't being picked up though . . . )

PJH