Ubuntu 7.10 server/ZM 1.23.2 from src, how to (31/03/2008)

Support and queries relating to all previous versions of ZoneMinder
williamberg
Posts: 7
Joined: Wed May 28, 2008 6:31 pm

Post 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# 
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Ugh

Post 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
Ternitzer
Posts: 14
Joined: Sat Dec 02, 2006 10:20 pm

Post 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.
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Post 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
Locked