Install on Fedora 8 from RPM - What Next?
Install on Fedora 8 from RPM - What Next?
Hi,
After a break from ZM of a couple of years I decided to get it going again.
I had previously compiled it for a RH7 machine.
I have just fired up a Fedora 8 PC and installed Zoneminder with yum. All went well with the dependencies found and installed. I read the manual and with mysql running I found I could not even find zminit let alone run it.
So there are differences in the RPM installs.
This is what I get from the ZM startup;
httpd (pid 1999 1998 1997 1996 1995 1994 1993 1992 1870) is running...
mysqld (pid 1816) is running...
DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/lib/perl5/vendor_perl/5.8.8/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/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.
zoneminder is stopped
Where should I go from here? Should I look elsewhere for the install script?
Thanks ..... Colin
After a break from ZM of a couple of years I decided to get it going again.
I had previously compiled it for a RH7 machine.
I have just fired up a Fedora 8 PC and installed Zoneminder with yum. All went well with the dependencies found and installed. I read the manual and with mysql running I found I could not even find zminit let alone run it.
So there are differences in the RPM installs.
This is what I get from the ZM startup;
httpd (pid 1999 1998 1997 1996 1995 1994 1993 1992 1870) is running...
mysqld (pid 1816) is running...
DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/lib/perl5/vendor_perl/5.8.8/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/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.
zoneminder is stopped
Where should I go from here? Should I look elsewhere for the install script?
Thanks ..... Colin
You will have to read the instructions included with the RPM, it should be something like README.Fedora if they did it correctly. The zminit was something we did when we were packaging ZM our self and apparently they have not adopted our scripts for whatever reason. I still have the script but I would have to adjust it to the way they packaged ZM.
I still package ZM myself for my own use but have yet to load FC8 or adjust my build system to accommodate it.
I still package ZM myself for my own use but have yet to load FC8 or adjust my build system to accommodate it.
Thanks for the reply.
I don't know if I have any instructions with the RPM as I installed it from yum. But I'm sure there must be a readme somewhere. Just can't find it.
I will persevere for a while and if no good, perhaps it will be better to wait for your 'official' RPM.
Kind regards ........... Colin
I don't know if I have any instructions with the RPM as I installed it from yum. But I'm sure there must be a readme somewhere. Just can't find it.
I will persevere for a while and if no good, perhaps it will be better to wait for your 'official' RPM.
Kind regards ........... Colin
Well ... Progress.
I have it running without (I hope) error. Mysql database all seems OK.
However no image from Axis 205 camera.
I have the source set to;
http://192.168.1.5/axis-cgi/jpg/image.cgi?320x240
and have played around a bit with this. From Firefox or IE7 this link works fine. No password needed. But all I get is the broken image icon.
Any advice where to look next? I have followed the guide as best I can.
Kind regards ..... Colin
I have it running without (I hope) error. Mysql database all seems OK.
However no image from Axis 205 camera.
I have the source set to;
http://192.168.1.5/axis-cgi/jpg/image.cgi?320x240
and have played around a bit with this. From Firefox or IE7 this link works fine. No password needed. But all I get is the broken image icon.
Any advice where to look next? I have followed the guide as best I can.
Kind regards ..... Colin
try using /axis-cgi/mjpg/video.cgi?resolution=320x240 url, or fix your jpeg url to read /axis-cgi/jpg/image.cgi?resolution=320x240algenon wrote:Well ... Progress.
I have it running without (I hope) error. Mysql database all seems OK.
However no image from Axis 205 camera.
I have the source set to;
http://192.168.1.5/axis-cgi/jpg/image.cgi?320x240
and have played around a bit with this. From Firefox or IE7 this link works fine. No password needed. But all I get is the broken image icon.
Any advice where to look next? I have followed the guide as best I can.
Kind regards ..... Colin
apparently your camera's default resolution is not 320x240 and it just ignores the "320x240" parameter.
if common sense is so uncommon, why is it called common then?
Thanks for the reply W.
However if I paste the link;
http://192.168.1.5/axis-cgi/jpg/image.cgi?320x240
into a browser, I get the image from the Axis205 camera.
I checked the camera and it was set to 320x240.
I have had this camera going on an earlier installation of ZM and I think I have it set OK, but obviously I'm missing something. I'm sure it is something quite simple.
Kind regards ... Colin
However if I paste the link;
http://192.168.1.5/axis-cgi/jpg/image.cgi?320x240
into a browser, I get the image from the Axis205 camera.
I checked the camera and it was set to 320x240.
I have had this camera going on an earlier installation of ZM and I think I have it set OK, but obviously I'm missing something. I'm sure it is something quite simple.
Kind regards ... Colin
There are two parts in the configuration as described in the readme.
Host and path, If your not setting the cam up in DNS (most don't) then the host is just the ip of the cam. Port should be obvious. The path is the remainder of the url /axis-cgi/jpg/image.cgi?320x240
Host: 192.168.1.5
Path: /axis-cgi/jpg/image.cgi?320x240
Host and path, If your not setting the cam up in DNS (most don't) then the host is just the ip of the cam. Port should be obvious. The path is the remainder of the url /axis-cgi/jpg/image.cgi?320x240
Host: 192.168.1.5
Path: /axis-cgi/jpg/image.cgi?320x240
and still, url /axis-cgi/jpg/image.cgi?320x240 is not valid according to axis http api, please refer to http://www.axis.com/techsup/cam_servers ... g_snapshot for correct parameters. and make sure you have firmware version 4.x, but even if you don't, there is parameter "resolution" in version 1 of api as well.
if common sense is so uncommon, why is it called common then?
and, btw, there are presets for axis cameras that you can use when creating new monitor to stay away from hassles like this.
path for 640x480 would be /axis-cgi/jpg/image.cgi?resolution=640x480 if you want to stick with jpeg images instead of mjpeg. which is probably good idea as somebody (search the forums) reported less cpu utilization when using jpegs.
path for 640x480 would be /axis-cgi/jpg/image.cgi?resolution=640x480 if you want to stick with jpeg images instead of mjpeg. which is probably good idea as somebody (search the forums) reported less cpu utilization when using jpegs.
if common sense is so uncommon, why is it called common then?
when you create new monitor, there is "Presets" link in upper right corner of the window. and secret of 640x480 is having enough sharedmem and having it all set up right.algenon wrote:<and, btw, there are presets for axis cameras that you can use when creating new monitor to stay away from hassles like this. >
Hi, where are these presets?
Also what are the secrets for getting 640 x 420 going?
Thanks ... Colin
if common sense is so uncommon, why is it called common then?
<when you create new monitor, there is "Presets" link in upper right corner of the window. and secret of 640x480 is having enough sharedmem and having it all set up right.>
Thanks for quick response.
I had tried earlier to set the camera up with the 'Presets' link but it returned an error;
Unknown column 'DefaultView' in 'field list'
I thought there was some other setup. It may be that the Fedora RPM install is not strictly standard.
I was aware that the 640 x 420 res was dependent on some memory management as it works in BW but not colour.
My Fedora machine has 1 GIG ram. Any advice on setting up the shared ram?
Again, thanks .......... Colin
Thanks for quick response.
I had tried earlier to set the camera up with the 'Presets' link but it returned an error;
Unknown column 'DefaultView' in 'field list'
I thought there was some other setup. It may be that the Fedora RPM install is not strictly standard.
I was aware that the 640 x 420 res was dependent on some memory management as it works in BW but not colour.
My Fedora machine has 1 GIG ram. Any advice on setting up the shared ram?
Again, thanks .......... Colin
i suggest you first read wiki, then search forums. there is a patch for first issue and lots of posts (maybe 1/2-2/3 of all "doesn't work" posts) about shared memory.algenon wrote: My Fedora machine has 1 GIG ram. Any advice on setting up the shared ram?
Again, thanks .......... Colin
if common sense is so uncommon, why is it called common then?