Install issues: dependencies

Forum for questions and support relating to the 1.24.x releases only.
Locked
renjar
Posts: 5
Joined: Fri May 08, 2009 3:53 am

Install issues: dependencies

Post by renjar »

I have used the live CD of ZoneMinder and loved it. But I am not having any luck installing it on my existing Ubuntu box, ever attempt has failed.

First attempt was from apt-get install zoneminder which gives:

Code: Select all

The following packages have unmet dependencies:
  ffmpeg: Depends: libavcodec51 (>= 0.svn20080206-8) but it is not installable or
                   libavcodec-unstripped-51 (>= 0.svn20080206-8) but it is not installable
          Depends: libavdevice52 (>= 0.svn20080206-8) but it is not installable or
                   libavdevice-unstripped-52 (>= 0.svn20080206-8) but it is not installable
          Depends: libavformat52 (>= 0.svn20080206-8) but it is not installable or
                   libavformat-unstripped-52 (>= 0.svn20080206-8) but it is not installable
          Depends: libswscale0 (>= 0.svn20080206-8) but it is not installable or
                   libswscale-unstripped-0 (>= 0.svn20080206-8) but it is not installable
  libschroedinger-dev: Depends: libschroedinger-1.0-0 (= 1.0.5-1) but 1.0.1-2 is to be installed
Then attempted to compile from source to catch those dependents:
http://www.zoneminder.com/wiki/index.ph ... ola-0.7%29

Only to be met with this issue on the make:

Code: Select all

/root/zm/src/zm_mpeg.cpp:362: undefined reference to `av_init_packet'
/root/zm/src/zm_mpeg.cpp:341: undefined reference to `av_init_packet'
Which lead me to this post that talks about the error. yet the fix did not work for me.
http://www.zoneminder.com/forums/viewto ... initpacket

Compiling FFmepg did not resolve the depent issues which I thought was unusual. For the life of me I have not been able to resolve this, even manually downloading the .deb packages has not worked.

My box is running MythTV (greatest) and uses FFmepg already and after all the hacking I have dont it is far from a clean install.

Any ideas? I have been working on this days now and really want ZoneMinder to work.
User avatar
henriquejf
Posts: 77
Joined: Tue Feb 10, 2009 12:01 pm
Location: Brazil

Post by henriquejf »

if i understand you right, you loved the live cd; but installing a live cd in top of another distro seems weird to me;

if you liked it, why dont you simply click on the "install live cd" (or similar icon) thats on your desktop ? (that will avoid any other headaches;)

are you using the zmlarch live cd ? i think this is the most updated one, available on http://www.zoneminder.com/wiki/index.php/ZMLarch ;

if you like it and have any other questions, there is a topic for it on

http://www.zoneminder.com/forums/viewforum.php?f=6

good luck !
-----------------------
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
renjar
Posts: 5
Joined: Fri May 08, 2009 3:53 am

Post by renjar »

I have an existing Ubuntu box that has MythTV, Asterisk and a bunch of other stuff up and running that I have setup over time. I wish to add ZoneMinder to this installation.

Installing from a live CD is a fresh installation, I understand this the simplest method of isntalling but I dont want to blow away my current OS.

How can FFMPEG depend of packages that you not available to be downloaded?
User avatar
henriquejf
Posts: 77
Joined: Tue Feb 10, 2009 12:01 pm
Location: Brazil

Post by henriquejf »

ok, i understand you; i think i know what you need:

1- edit /etc/apt/sources.list and enable more repositories (remove # sign commenting lines of repositories you want to enable)

2- apt-get update

3- now try to intall the package the same way you were trying before, like apt-get install zoneminder

4- if you get the same errors, or related errors, try the following magic commands

apt-get -f install
dpkg --configure -a

*i have referred to this link
http://www.debian.org/doc/manuals/apt-h ... os.en.html
this magic command will try to correct the dependencies, it worked for me before in MANY situations

5- try step 3 again and see if that solves the question;

---x----

well, still if it works, as i have mentioned youĺl get a little outdated version of zoneminder, before 1.24.1 version that is the newer one, so youĺl get bugs that have been corrected on newer versions; (because they dont have the time to release debian/ubuntu packaged zoneminders everyday, i think;)

hope it helps !!! if you have the patience, im sure youll like it in the end !!!
-----------------------
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
User avatar
henriquejf
Posts: 77
Joined: Tue Feb 10, 2009 12:01 pm
Location: Brazil

Post by henriquejf »

still, as a last resource you may download the debian package (the one is missing as you mentioned like libavcodec51 and libavcodec-unstripped-51) for your correct architeture and install the package that is not installable in normal means; (debian.org)

http://www.us.debian.org/distrib/packag ... h_packages

as i said, as a **last resource**, i once solved this very similar problem to me under ubuntu downloading the debain package;

the ***safer*** to do is find the exact repository that is missing, add it to the sources, update, fix.... using apt tools;

luck!
-----------------------
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
renjar
Posts: 5
Joined: Fri May 08, 2009 3:53 am

Post by renjar »

Expanding the source.list to enable more repositories has fixed some of them, but there are still a few remaining.

For example libgnutls26 can not be found, yet using your link I can find the details of the package http://packages.debian.org/lenny/libgnutls26

How do I find the entry that is needed in the source.list for this package? I know I could download the deb file but I would prefer to document this on the wiki should anyone else come across this issue as well.
User avatar
henriquejf
Posts: 77
Joined: Tue Feb 10, 2009 12:01 pm
Location: Brazil

Post by henriquejf »

sorry, at this point it goes out of my little knownledge; when those broken installs happened to me some times, i ended up giving up because it was so "ugly" that i couldnt document it to myself neither to others;

in the end i tried to start a new fresh install, but i know that is not what you want, so as i said downloading the debian packages are a last option;

note: if youre able to download a .deb package you can install it with dpkg directly too;

hope you can find the remainig packages;



edit::: think i got it

http://packages.debian.org/lenny/i386/l ... 6/download
If you are running Debian, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website.

You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:

deb http://ftp.de.debian.org/debian lenny main

Replacing ftp.de.debian.org/debian with the mirror in question.
or if all else fails, the last option:
http://ftp.us.debian.org/debian/pool/ma ... 1_i386.deb
-----------------------
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
renjar
Posts: 5
Joined: Fri May 08, 2009 3:53 am

Post by renjar »

I ended up using aptitude to figure out what the issue was, libsound (and something I dont remember) was being because the old version of MythTV I was running was dependent.

In an attempt to fix it I removed the package and did not pay attention as it removed MythTV and the entire desktop (arh!) and I was not able to fix it.

No choice, rebuild :cry: and start again.
User avatar
henriquejf
Posts: 77
Joined: Tue Feb 10, 2009 12:01 pm
Location: Brazil

Post by henriquejf »

ok, have a look at

http://www.zoneminder.com/wiki/index.ph ... rver_32bit

see if helps in any way;
-----------------------
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
Locked