Page 1 of 1

Manual install on ubuntu Gutsy 7.10

Posted: Thu Nov 08, 2007 6:56 am
by kevin_robson
I've done various ZM installs on suse and redhat, but am struggling with Ubuntu. Tried a while ago and gave up, but 7.10 looks very good so I thought I'd revisit.
I'm having the same problem as before on configure though:

configure: WARNING: libpcre.a may be required for
remote/network camera support
checking for ff_gcd in -lavutil... no
configure: WARNING: libavutil.a may be required for
MPEG streaming
checking for avcodec_init in -lavcodec... no
configure: WARNING: libavcodec.a is required for MPEG
streaming
checking for av_new_stream in -lavformat... no
configure: WARNING: libavformat.a is required for MPEG
streaming

I seem to remember that ffmpeg needs to be compiled with special options rather than installing from packages? Anyone got instructions on this? I also tried the EXTRA_LIBS parameter to no effect - has anyone got the correct syntax for doing this?

I realise it is possible to install ZM from repository but then you lose all the control/visibility on what is happening, so I'd rather do a manual install.

I note that a few people are now using ubuntu - someone must have done a manual install, even if it were the package creator.

Thanks in advance.

Posted: Thu Nov 08, 2007 3:21 pm
by Lee Sharp
Is there some reason you don't want to use the repos? It is much easier to go 'apt-get install zoneminder' and just be done. Additionally, Peter has some more recent debs than the repos.

Posted: Thu Nov 08, 2007 6:28 pm
by kevin_robson
As I said, I'd just like to have a better idea what is going on, which subdirectory within the document root the files go etc etc.

I've done a few installs so should be OK once I get past the ffmpeg problems.

I also did try the packages but couldn't get them to work first time. I then removed them to try the manual method, and reinstallation is now failing, so I'd prefer manual mode if poss.

If not, here is the error. Presumably because the DB has already been set up once?

Setting up zoneminder (1.22.3-7) ...
Starting ZoneMinder: DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/share/perl5/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/share/perl5/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.
failure

invoke-rc.d: initscript zoneminder, action "start" failed.
dpkg: error processing zoneminder (--configure):
subprocess post-installation script returned error exit status 255
Errors were encountered while processing:
zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)

Posted: Fri Nov 09, 2007 3:52 am
by PeterHoward
kevin_robson wrote: If not, here is the error. Presumably because the DB has already been set up once?

Setting up zoneminder (1.22.3-7) ...
Starting ZoneMinder: DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/share/perl5/ZoneMinder/Config.pm line 89
Was that after you had done a manual install? If so I suspect it's because you've chosen a different password (and possibly username) to what the package expects.

PJH

Posted: Fri Nov 09, 2007 7:47 am
by kevin_robson
I've managed to get it installing manually and ignoring the MPEG streaming errors. Console works but video doesn't - permissions on apache I think. I'd already tweaked apache for other apps so think that is why but ran out of time to resolve last night.

Going back to the ffmpeg and mpeg streaming warnings on configure, is there a quick solution to this? Or do the packages just ignore and not support mpeg streaming?

Posted: Fri Nov 09, 2007 10:06 pm
by PeterHoward
Yep, the package ignores mpeg streaming.

Posted: Sat Nov 10, 2007 7:31 pm
by rDr4g0n
im a complete linux noob, and i got it going using the walkthrough from here http://www.howtoforge.com/video_surveil ... der_ubuntu i also got ahold of a deb file to do the install.

dunno if this is too simplistic for your purposes though.
________
Yamaha yz450f specifications
________
VAPORIZER AFFILIATE

Posted: Tue Nov 13, 2007 2:29 am
by RoundSparrow
kevin_robson wrote:I've managed to get it installing manually and ignoring the MPEG streaming errors. Console works but video doesn't - permissions on apache I think. I'd already tweaked apache for other apps so think that is why but ran out of time to resolve last night.
On Ubuntu Gutsy (7.10), I've had to chmod 666 /dev/video0 (or appropriate dev) to get working. zmfix doesn't seem to do it right.

Picture won't show unless I do this. Restart zoneminder after doing.

Posted: Tue Nov 13, 2007 3:47 am
by linuxsense
RoundSparrow wrote: On Ubuntu Gutsy (7.10), I've had to chmod 666 /dev/video0 (or appropriate dev) to get working. zmfix doesn't seem to do it right.

Picture won't show unless I do this. Restart zoneminder after doing.
Is 'www-data' a member of group 'video'? You should not need to change any device perms if it is.

Re: Manual install on ubuntu Gutsy 7.10

Posted: Tue Nov 13, 2007 3:55 am
by linuxsense
kevin_robson wrote:I've done various ZM installs on suse and redhat, but am struggling with Ubuntu. Tried a while ago and gave up, but 7.10 looks very good so I thought I'd revisit.
I'm having the same problem as before on configure though:

configure: WARNING: libpcre.a may be required for
remote/network camera support
checking for ff_gcd in -lavutil... no
configure: WARNING: libavutil.a may be required for
MPEG streaming
checking for avcodec_init in -lavcodec... no
configure: WARNING: libavcodec.a is required for MPEG
streaming
checking for av_new_stream in -lavformat... no
configure: WARNING: libavformat.a is required for MPEG
streaming

I seem to remember that ffmpeg needs to be compiled with special options rather than installing from packages? Anyone got instructions on this? I also tried the EXTRA_LIBS parameter to no effect - has anyone got the correct syntax for doing this?

I realise it is possible to install ZM from repository but then you lose all the control/visibility on what is happening, so I'd rather do a manual install.

I note that a few people are now using ubuntu - someone must have done a manual install, even if it were the package creator.

Thanks in advance.
Kevin,

I install from source on 7.10 with no issues. My config command is:

Code: Select all

./configure --with-libarch=lib --with-ffmpeg=/usr/local --with-webdir=/usr/share/zoneminder --with-cgidir=/usr/lib/cgi-bin --with-mysql=/usr/include/mysql --with-webuser=www-data --with-webgroup=www-data --disable-debug --disable-crashtrace
I use a version of ffmpeg that I built from svn, if you remove your current ffmpeg package and compile ffmpeg from svn before you build ZM, you should not have any issues creating video from the streams. To checkout from svn just do:

Code: Select all

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
Once its been checked out, do "cd ffmpeg" then "./configure" followed by "make" then "make install". Following those steps should get you a working ffmpeg binary and a fresh ZM install that gets along with it ;-)

You may need to install some additional libs to get everything to build OK, but it should be pretty easy to tell what you are missing once you get into it.

Posted: Tue Nov 13, 2007 7:15 am
by kevin_robson
Thanks. I've got working now using a the process you describe. There is a sort of duplicate thread running where someone helped me with the ffmpeg source build and I'm OK now.

Haven't had a chance to test it in anger yet, and was warned in the past of stability issues on ubuntu - I'm assuming by the number of people using that these are unfounded?

Posted: Tue Nov 13, 2007 9:40 pm
by linuxsense
kevin_robson wrote:Thanks. I've got working now using a the process you describe. There is a sort of duplicate thread running where someone helped me with the ffmpeg source build and I'm OK now.

Haven't had a chance to test it in anger yet, and was warned in the past of stability issues on ubuntu - I'm assuming by the number of people using that these are unfounded?
As long as you are using a released version of Ubuntu (not beta) you should have no stability issues. Ubuntu is based on Debian which has a very good history of being stable (at the expense of being behind the curve for X related programs) so I would rate it as one of the more solid distros...especially if you use the LTS version which is not on the bleeding edge. I have been working with UNIX systems for over 20 years and was a Debian user waaaayyy back...'not stable' are terms I have never heard an experienced *NIX admin apply to released versions of Debian or Ubuntu...you need to ignore the opinions of noobs who bash any OS when they simply used incompatible hardware, a poor configuration, or alpha/beta releases :wink:

Posted: Wed Nov 14, 2007 6:39 am
by kevin_robson
Thanks. Just reread and I should have made it clear I was referring to zoneminder instability rather than general instability. That said, there seems to be a few people running now so should be fine, when I get a chance to fully finish it.

Posted: Wed Nov 14, 2007 9:02 pm
by linuxsense
kevin_robson wrote:Thanks. Just reread and I should have made it clear I was referring to zoneminder instability rather than general instability. That said, there seems to be a few people running now so should be fine, when I get a chance to fully finish it.
I have not heard of ZM acting up on Ubuntu based distros (minor issues like ffmpeg aside), but I am pretty new to ZM. One thing to note...the 'live cd' for ZM is Xubuntu which is just a version of Ubuntu with the Xfce desktop environment.

Posted: Fri Nov 16, 2007 4:44 am
by Lee Sharp
linuxsense wrote:One thing to note...the 'live cd' for ZM is Xubuntu which is just a version of Ubuntu with the Xfce desktop environment.
Blue Cherry's LiveCD is Xubuntu. There is the traditional LiveCD which is RH based, and a Puppy LiveCD as well.