Trouble with make install

Support and queries relating to all previous versions of ZoneMinder
Locked
spivieguy1
Posts: 5
Joined: Mon Dec 05, 2005 7:44 am

Trouble with make install

Post by spivieguy1 »

I know there is going to be some really easy fix for this, but as I'm learing as much about linux as I am ZM, I don't know what it is.

When I "make install" here's what I get
Notice the "chown 'apache:apache' : invalid user" error
This seems to happen a couple of times
This is Debian (sarge) and I did execute this after su to root

Making install in src
make[1]: Entering directory `/etc/zm-1.21.4/src'
make[2]: Entering directory `/etc/zm-1.21.4/src'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/usr/bin/install -c 'zmc' '/usr/local/bin/zmc'
/usr/bin/install -c 'zma' '/usr/local/bin/zma'
/usr/bin/install -c 'zmu' '/usr/local/bin/zmu'
/usr/bin/install -c 'zms' '/usr/local/bin/zms'
/usr/bin/install -c 'zmf' '/usr/local/bin/zmf'
/usr/bin/install -c 'zmfix' '/usr/local/bin/zmfix'
make install-exec-hook
make[3]: Entering directory `/etc/zm-1.21.4/src'
( cd /usr/local/bin; mkdir -p /var/www/cgi-bin; mv zms /var/www/cgi-bin )
( cd /var/www/cgi-bin; chown apache:apache zms; ln -f zms nph-zms )
chown: `apache:apache': invalid user
( cd /usr/local/bin; chmod u+s zmfix )
make[3]: Leaving directory `/etc/zm-1.21.4/src'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/etc/zm-1.21.4/src'
make[1]: Leaving directory `/etc/zm-1.21.4/src'
Making install in web
make[1]: Entering directory `/etc/zm-1.21.4/web'
Making install in graphics
make[2]: Entering directory `/etc/zm-1.21.4/web/graphics'
make[3]: Entering directory `/etc/zm-1.21.4/web/graphics'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/var/www/html/zm/graphics" || mkdir -p -- "/var/www/html/zm/graphics"
/usr/bin/install -c -m 644 'arrow-d.gif' '/var/www/html/zm/graphics/arrow-d.gif'
/usr/bin/install -c -m 644 'arrow-dl.gif' '/var/www/html/zm/graphics/arrow-dl.gif'
/usr/bin/install -c -m 644 'arrow-dr.gif' '/var/www/html/zm/graphics/arrow-dr.gif'
/usr/bin/install -c -m 644 'arrow-l.gif' '/var/www/html/zm/graphics/arrow-l.gif'
/usr/bin/install -c -m 644 'arrow-r.gif' '/var/www/html/zm/graphics/arrow-r.gif'
/usr/bin/install -c -m 644 'arrow-u.gif' '/var/www/html/zm/graphics/arrow-u.gif'
/usr/bin/install -c -m 644 'arrow-ul.gif' '/var/www/html/zm/graphics/arrow-ul.gif'
/usr/bin/install -c -m 644 'arrow-ur.gif' '/var/www/html/zm/graphics/arrow-ur.gif'
/usr/bin/install -c -m 644 'arrow-l-u.gif' '/var/www/html/zm/graphics/arrow-l-u.gif'
/usr/bin/install -c -m 644 'arrow-l-d.gif' '/var/www/html/zm/graphics/arrow-l-d.gif'
/usr/bin/install -c -m 644 'center.gif' '/var/www/html/zm/graphics/center.gif'
/usr/bin/install -c -m 644 'seq-u.gif' '/var/www/html/zm/graphics/seq-u.gif'
/usr/bin/install -c -m 644 'seq-d.gif' '/var/www/html/zm/graphics/seq-d.gif'
/usr/bin/install -c -m 644 'spacer.gif' '/var/www/html/zm/graphics/spacer.gif'
make install-data-hook
make[4]: Entering directory `/etc/zm-1.21.4/web/graphics'
( cd /var/www/html/zm/graphics; chown apache:apache arrow-d.gif arrow-dl.gif arrow-dr.gif arrow-l.gif arrow-r.gif arrow-u.gif arrow-ul.gif arrow-ur.gif arrow-l-u.gif arrow-l-d.gif center.gif seq-u.gif seq-d.gif spacer.gif )
chown: `apache:apache': invalid user
make[4]: *** [install-data-hook] Error 1
make[4]: Leaving directory `/etc/zm-1.21.4/web/graphics'
make[3]: *** [install-data-am] Error 2
make[3]: Leaving directory `/etc/zm-1.21.4/web/graphics'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/etc/zm-1.21.4/web/graphics'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/etc/zm-1.21.4/web'
make: *** [install-recursive] Error 1
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

In configure your using the wrong webuser and webgroup.

Check your httpd.conf (should be in /etc/http or etc/apache) and see what the user and group apache is configured for and use those for your configure setting for ZM.

Regards,
Cordel
spivieguy1
Posts: 5
Joined: Mon Dec 05, 2005 7:44 am

Error adding first monitor

Post by spivieguy1 »

Error:
Warning: mkdir(events/5): No such file or directory in /etc/zm-1.21.4/web/zm_actions.php on line 1107

Warning: chdir(): No such file or directory (errno 2) in /etc/zm-1.21.4/web/zm_actions.php on line 1108

Warning: symlink(): Permission denied in /etc/zm-1.21.4/web/zm_actions.php on line 1109

Apache log:

[Fri Dec 09 03:50:32 2005] [error] [client 192.168.0.10] script not found or unable to stat: /usr/lib/cgi-bin/zms
df: `events': No such file or directory

recent system messages are:

Dec 9 09:48:35 localhost zmc_dvideo1[17107]: INF [Debug Level = 0, Debug Log = <none>]
Dec 9 09:48:35 localhost kernel: bttv0: PLL can sleep, using XTAL (28636363).
Dec 9 09:48:36 localhost zmc_dvideo1[17107]: INF [Starting Capture]
Dec 9 09:49:49 localhost zmc_dvideo1[17107]: INF [Got TERM signal, exiting]
Dec 9 09:49:50 localhost zmc_dvideo1[17180]: INF [Debug Level = 0, Debug Log = <none>]
Dec 9 09:49:50 localhost zmc_dvideo1[17180]: INF [Starting Capture]
Dec 9 09:50:22 localhost zmc_dvideo1[17180]: INF [Got TERM signal, exiting]
Dec 9 09:50:24 localhost zmc_dvideo1[17206]: INF [Debug Level = 0, Debug Log = <none>]
Dec 9 09:50:24 localhost zmc_dvideo1[17206]: INF [Starting Capture]
Dec 9 09:53:54 localhost zmc_dvideo1[17206]: INF [USB: 1000 - Capturing at 4.76 fps]
Dec 9 09:57:25 localhost zmc_dvideo1[17206]: INF [USB: 2000 - Capturing at 4.74 fps]
Dec 9 10:00:56 localhost zmc_dvideo1[17206]: INF [USB: 3000 - Capturing at 4.74 fps]
Dec 9 10:04:28 localhost zmc_dvideo1[17206]: INF [USB: 4000 - Capturing at 4.72 fps]
Dec 9 10:07:59 localhost zmc_dvideo1[17206]: INF [USB: 5000 - Capturing at 4.74 fps]
Dec 9 10:11:31 localhost zmc_dvideo1[17206]: INF [USB: 6000 - Capturing at 4.72 fps]
Dec 9 10:15:02 localhost zmc_dvideo1[17206]: INF [USB: 7000 - Capturing at 4.74 fps]
Dec 9 10:18:34 localhost zmc_dvideo1[17206]: INF [USB: 8000 - Capturing at 4.72 fps]
Dec 9 10:22:06 localhost zmc_dvideo1[17206]: INF [USB: 9000 - Capturing at 4.72 fps]
Dec 9 10:25:37 localhost zmc_dvideo1[17206]: INF [USB: 10000 - Capturing at 4.74 fps]
Dec 9 10:25:49 localhost zmc_dvideo0[18986]: INF [Debug Level = 0, Debug Log = <none>]
Dec 9 10:25:50 localhost kernel: usbvideo.c: Packet Statistics: Total=64. Empty=0. Usage=100%%
Dec 9 10:25:50 localhost kernel: usbvideo.c: Transfer Statistics: Transferred=0 B Usage=0%%
Dec 9 10:25:50 localhost zmc_dvideo0[18990]: INF [Debug Level = 0, Debug Log = <none>]
Dec 9 10:25:50 localhost kernel: usbvideo.c: Packet Statistics: Total=64. Empty=0. Usage=100%%
Dec 9 10:25:50 localhost kernel: usbvideo.c: Transfer Statistics: Transferred=0 B Usage=0%%
Dec 9 10:25:56 localhost zmc_dvideo0[19003]: INF [Debug Level = 0, Debug Log = <none>]
Dec 9 10:25:57 localhost kernel: usbvideo.c: Packet Statistics: Total=64. Empty=0. Usage=100%%
Dec 9 10:25:57 localhost kernel: usbvideo.c: Transfer Statistics: Transferred=0 B Usage=0%%
Dec 9 10:26:07 localhost zmc_dvideo0[19013]: INF [Debug Level = 0, Debug Log = <none>]
Dec 9 10:26:08 localhost kernel: usbvideo.c: Packet Statistics: Total=64. Empty=0. Usage=100%%
Dec 9 10:26:08 localhost kernel: usbvideo.c: Transfer Statistics: Transferred=0 B Usage=0%%
Dec 9 10:26:28 localhost zmc_dvideo0[19033]: INF [Debug Level = 0, Debug Log = <none>]
Dec 9 10:26:28 localhost kernel: usbvideo.c: Packet Statistics: Total=64. Empty=0. Usage=100%%
Dec 9 10:26:28 localhost kernel: usbvideo.c: Transfer Statistics: Transferred=0 B Usage=0%%
Dec 9 10:27:08 localhost zmc_dvideo0[19040]: INF [Debug Level = 0, Debug Log = <none>]
Dec 9 10:28:04 localhost zmc_dvideo1[17206]: INF [Got TERM signal, exiting]
Dec 9 10:28:29 localhost zmc_dvideo0[19061]: INF [Debug Level = 0, Debug Log = <none>]

zmdc.log information

Server starting at 05/12/09 03:48:30
'zmc -d /dev/video1' started at 05/12/09 03:48:35
'zmc -d /dev/video1' starting at 05/12/09 03:48:35, pid = 17107
'zmfilter.pl' starting at 05/12/09 03:48:37, pid = 17111
'zmfilter.pl' started at 05/12/09 03:48:37
Can't locate Date/Manip.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/p$
BEGIN failed--compilation aborted at /usr/local/bin/zmfilter.pl line 140.
'zmfilter.pl ' crashed at 05/12/09 03:48:39, exit status 2
'zmfilter.pl' starting at 05/12/09 03:48:39, pid = 17115
'zmfilter.pl' started at 05/12/09 03:48:39
'zmaudit.pl -d 900 -y' starting at 05/12/09 03:48:41, pid = 17116
'zmaudit.pl -d 900 -y' started at 05/12/09 03:48:41
Can't locate Date/Manip.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/p$
BEGIN failed--compilation aborted at /usr/local/bin/zmfilter.pl line 140.
'zmfilter.pl ' crashed at 05/12/09 03:48:42, exit status 2
'zmwatch.pl' starting at 05/12/09 03:48:44, pid = 17122
'zmwatch.pl' started at 05/12/09 03:48:44
Starting pending process, zmfilter.pl
'zmfilter.pl' starting at 05/12/09 03:48:47, pid = 17126
'zmfilter.pl' started at 05/12/09 03:48:47
'zmupdate.pl -c' started at 05/12/09 03:48:47
'zmupdate.pl -c' starting at 05/12/09 03:48:47, pid = 17127
Can't locate Date/Manip.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/p$
BEGIN failed--compilation aborted at /usr/local/bin/zmfilter.pl line 140.
'zmfilter.pl ' crashed at 05/12/09 03:48:50, exit status 2
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/li$
BEGIN failed--compilation aborted at /usr/local/bin/zmupdate.pl line 181.
'zmupdate.pl -c' crashed at 05/12/09 03:48:51, exit status 2
'zmupdate.pl -c' starting at 05/12/09 03:48:51, pid = 17133
'zmupdate.pl -c' started at 05/12/09 03:48:51
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/li$
BEGIN failed--compilation aborted at /usr/local/bin/zmupdate.pl line 181.
'zmupdate.pl -c' crashed at 05/12/09 03:48:54, exit status 2
'zmaudit.pl -d 900 -y' running at 05/12/09 03:48:41, pid = 17116, valid
'zmwatch.pl' running at 05/12/09 03:48:44, pid = 17122, valid
'zmc -d /dev/video1' running at 05/12/09 03:48:35, pid = 17107, valid
'zmupdate.pl -c' pending at 05/12/09 03:48:59
'zmfilter.pl' pending at 05/12/09 03:49:00
Starting pending process, zmupdate.pl -c
'zmupdate.pl -c' starting at 05/12/09 03:48:59, pid = 17140
'zmupdate.pl -c' started at 05/12/09 03:48:59
Starting pending process, zmfilter.pl
'zmfilter.pl' starting at 05/12/09 03:49:00, pid = 17142
'zmfilter.pl' started at 05/12/09 03:49:00
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/li$
BEGIN failed--compilation aborted at /usr/local/bin/zmupdate.pl line 181.
'zmupdate.pl -c' crashed at 05/12/09 03:49:01, exit status 2
Can't locate Date/Manip.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/p$
BEGIN failed--compilation aborted at /usr/local/bin/zmfilter.pl line 140.
'zmfilter.pl ' crashed at 05/12/09 03:49:02, exit status 2
Starting pending process, zmupdate.pl -c
'zmupdate.pl -c' starting at 05/12/09 03:49:11, pid = 17152
'zmupdate.pl -c' started at 05/12/09 03:49:11
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/li$
BEGIN failed--compilation aborted at /usr/local/bin/zmupdate.pl line 181.
'zmupdate.pl -c' crashed at 05/12/09 03:49:12, exit status 2
Starting pending process, zmfilter.pl
'zmfilter.pl' starting at 05/12/09 03:49:22, pid = 17164
'zmfilter.pl' started at 05/12/09 03:49:22
Can't locate Date/Manip.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/p$
BEGIN failed--compilation aborted at /usr/local/bin/zmfilter.pl line 140.
'zmfilter.pl ' crashed at 05/12/09 03:49:25, exit status 2
Starting pending process, zmupdate.pl -c
'zmupdate.pl -c' starting at 05/12/09 03:49:32, pid = 17169
'zmupdate.pl -c' started at 05/12/09 03:49:32
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/li$
BEGIN failed--compilation aborted at /usr/local/bin/zmupdate.pl line 181.
'zmupdate.pl -c' crashed at 05/12/09 03:49:34, exit status 2
'zmc -d /dev/video1' stopping at 05/12/09 03:49:49
'zmc -d /dev/video1' died at 05/12/09 03:49:49
'zmc -d /dev/video1' starting at 05/12/09 03:49:50, pid = 17180
'zmc -d /dev/video1' started at 05/12/09 03:49:50
Can't find process with command of 'zma -m 1'
'zmc -d /dev/video1' running at 05/12/09 03:49:50, pid = 17180, valid
'zmaudit.pl -d 900 -y' running at 05/12/09 03:48:41, pid = 17116, valid
'zmwatch.pl' running at 05/12/09 03:48:44, pid = 17122, valid
'zmupdate.pl -c' pending at 05/12/09 03:50:14
'zmfilter.pl' pending at 05/12/09 03:50:05
Starting pending process, zmfilter.pl
'zmfilter.pl' starting at 05/12/09 03:50:05, pid = 17192


There is like 200 more lines of errors like this one of them claims not to be able to find perl libs (the same I used to configure?)
spivieguy1
Posts: 5
Joined: Mon Dec 05, 2005 7:44 am

Post by spivieguy1 »

Thanks for the heads up on the user and group with webserver. I changed everything several times (both apache config and zm config) before I realized i needed to "apache -k restart"

Jonathan
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Some of this errors are missing perl modules.
Can't locate Date/Manip.pm
LWP/UserAgent.pm

Others suggest that you still don't have the correct user and group set in the zm configure script before you compiled.

If you would like you can email me access for ssh and I can go trough and fix these for you.

Else you can call me Via Free World Dialup (FWD)

Regards,
Corey
Image
Image
3939663646337

It's better to keep your mouth shut and appear stupid than open it and remove all doubt.
-Mark Twain
Locked