Manual install on ubuntu Gutsy 7.10
-
- Posts: 247
- Joined: Sun Jan 16, 2005 11:26 am
Manual install on ubuntu Gutsy 7.10
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.
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.
-
- Posts: 247
- Joined: Sun Jan 16, 2005 11:26 am
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)
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)
-
- Posts: 319
- Joined: Thu Jul 20, 2006 1:07 am
- Location: Australia
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.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
PJH
-
- Posts: 247
- Joined: Sun Jan 16, 2005 11:26 am
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?
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?
-
- Posts: 319
- Joined: Thu Jul 20, 2006 1:07 am
- Location: Australia
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
dunno if this is too simplistic for your purposes though.
________
Yamaha yz450f specifications
________
VAPORIZER AFFILIATE
Last edited by rDr4g0n on Mon Feb 14, 2011 4:37 pm, edited 2 times in total.
-
- Posts: 23
- Joined: Thu Oct 18, 2007 2:11 pm
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.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.
Picture won't show unless I do this. Restart zoneminder after doing.
-
- Posts: 374
- Joined: Wed Nov 07, 2007 1:59 am
- Location: Huntington Beach, California
- Contact:
Is 'www-data' a member of group 'video'? You should not need to change any device perms if it is.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.
-
- Posts: 374
- Joined: Wed Nov 07, 2007 1:59 am
- Location: Huntington Beach, California
- Contact:
Re: Manual install on ubuntu Gutsy 7.10
Kevin,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.
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
Code: Select all
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

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.
-
- Posts: 247
- Joined: Sun Jan 16, 2005 11:26 am
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?
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?
-
- Posts: 374
- Joined: Wed Nov 07, 2007 1:59 am
- Location: Huntington Beach, California
- Contact:
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 releaseskevin_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?

-
- Posts: 247
- Joined: Sun Jan 16, 2005 11:26 am
-
- Posts: 374
- Joined: Wed Nov 07, 2007 1:59 am
- Location: Huntington Beach, California
- Contact:
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.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.