Manual install on ubuntu Gutsy 7.10

Support and queries relating to all previous versions of ZoneMinder
Locked
kevin_robson
Posts: 247
Joined: Sun Jan 16, 2005 11:26 am

Manual install on ubuntu Gutsy 7.10

Post 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.
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post 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.
kevin_robson
Posts: 247
Joined: Sun Jan 16, 2005 11:26 am

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

Post 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
kevin_robson
Posts: 247
Joined: Sun Jan 16, 2005 11:26 am

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

Post by PeterHoward »

Yep, the package ignores mpeg streaming.
rDr4g0n
Posts: 44
Joined: Fri Aug 10, 2007 4:00 pm

Post 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
Last edited by rDr4g0n on Mon Feb 14, 2011 4:37 pm, edited 2 times in total.
RoundSparrow
Posts: 23
Joined: Thu Oct 18, 2007 2:11 pm

Post 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.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post 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.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: Manual install on ubuntu Gutsy 7.10

Post 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.
kevin_robson
Posts: 247
Joined: Sun Jan 16, 2005 11:26 am

Post 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?
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post 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:
kevin_robson
Posts: 247
Joined: Sun Jan 16, 2005 11:26 am

Post 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.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post 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.
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

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