Odd...
-
- Posts: 163
- Joined: Fri Oct 22, 2010 11:21 am
Odd...
I know I should post more info but does anyone have ANY pointers ?
Zoneminder will not start at all, it built and installed fine, but will not start...
Zoneminder will not start at all, it built and installed fine, but will not start...
-
- Posts: 163
- Joined: Fri Oct 22, 2010 11:21 am
Re: Odd...
Here is the error…tibetfreedom wrote:I know I should post more info but does anyone have ANY pointers ?
Zoneminder will not start at all, it built and installed fine, but will not start...
root@CCTV:/usr/local/bin# zmpkg.pl start
Can't connect: No such file or directory at /usr/local/share/perl/5.10.1/ZoneMinder/Debug.pm line 349
ZoneMinder::Debug::Fatal('Can\'t connect: No such file or directory') called at /usr/local/bin/zmdc.pl line 168
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: Odd...
Code: Select all
diff --git a/scripts/zmdc.pl.in b/scripts/zmdc.pl.in
index f0109c3..30319a5 100644
--- a/scripts/zmdc.pl.in
+++ b/scripts/zmdc.pl.in
@@ -131,6 +131,9 @@ foreach my $arg ( @ARGV )
}
}
+# Create the directory first if it doesn't exist
+mkdir(ZM_PATH_SOCKS);
+
socket( CLIENT, PF_UNIX, SOCK_STREAM, 0 ) or Fatal( "Can't open socket: $!" );
my $saddr = sockaddr_un( SOCK_FILE );
mastertheknife
Kfir Itzhak.
-
- Posts: 163
- Joined: Fri Oct 22, 2010 11:21 am
Re: Odd...
Thanks,mastertheknife wrote:If ZM is already installed, then do it for /usr/bin/zmdc.pl (or /usr/bin/local/zmdc.pl)Code: Select all
diff --git a/scripts/zmdc.pl.in b/scripts/zmdc.pl.in index f0109c3..30319a5 100644 --- a/scripts/zmdc.pl.in +++ b/scripts/zmdc.pl.in @@ -131,6 +131,9 @@ foreach my $arg ( @ARGV ) } } +# Create the directory first if it doesn't exist +mkdir(ZM_PATH_SOCKS); + socket( CLIENT, PF_UNIX, SOCK_STREAM, 0 ) or Fatal( "Can't open socket: $!" ); my $saddr = sockaddr_un( SOCK_FILE );
mastertheknife
I don't understand your instructions, can you be a bit more specific, Do I paste this in terminal ? I am very familiar with terminal but not sure what to do with your very kind instructions,
Thanks.
-
- Posts: 163
- Joined: Fri Oct 22, 2010 11:21 am
Re: Odd...
do you meanmastertheknife wrote:If ZM is already installed, then do it for /usr/bin/zmdc.pl (or /usr/bin/local/zmdc.pl)Code: Select all
diff --git a/scripts/zmdc.pl.in b/scripts/zmdc.pl.in index f0109c3..30319a5 100644 --- a/scripts/zmdc.pl.in +++ b/scripts/zmdc.pl.in @@ -131,6 +131,9 @@ foreach my $arg ( @ARGV ) } } +# Create the directory first if it doesn't exist +mkdir(ZM_PATH_SOCKS); + socket( CLIENT, PF_UNIX, SOCK_STREAM, 0 ) or Fatal( "Can't open socket: $!" ); my $saddr = sockaddr_un( SOCK_FILE );
mastertheknife
substitute diff --git a/scripts/zmdc.pl.in b/scripts/zmdc.pl.in
with diff --git /usr/bin/zmdc.pl.in /usr/bin/zmdc.pl.in
?
for script /usr/bin/zmdc.pl ?
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: Odd...
Heh ignore the patch, it will just make life harder i guess.
Open /usr/bin/zmdc.pl (or /usr/bin/local/zmdc.pl depending on your installation) with an editor
Find this piece of code:
Add this above it:
mastertheknife
Open /usr/bin/zmdc.pl (or /usr/bin/local/zmdc.pl depending on your installation) with an editor
Find this piece of code:
Code: Select all
socket( CLIENT, PF_UNIX, SOCK_STREAM, 0 ) or Fatal( "Can't open socket: $!" );
my $saddr = sockaddr_un( SOCK_FILE );
my $server_up = connect( CLIENT, $saddr );
Code: Select all
mkdir(ZM_PATH_SOCKS);
Kfir Itzhak.
-
- Posts: 163
- Joined: Fri Oct 22, 2010 11:21 am
Re: Odd...
Thanks,mastertheknife wrote:Heh ignore the patch, it will just make life harder i guess.
Open /usr/bin/zmdc.pl (or /usr/bin/local/zmdc.pl depending on your installation) with an editor
Find this piece of code:Add this above it:Code: Select all
socket( CLIENT, PF_UNIX, SOCK_STREAM, 0 ) or Fatal( "Can't open socket: $!" ); my $saddr = sockaddr_un( SOCK_FILE ); my $server_up = connect( CLIENT, $saddr );
mastertheknifeCode: Select all
mkdir(ZM_PATH_SOCKS);
That's easy… I'll do that.
-
- Posts: 163
- Joined: Fri Oct 22, 2010 11:21 am
Re: Odd...
Thanks easy… done..tibetfreedom wrote:Thanks,mastertheknife wrote:Heh ignore the patch, it will just make life harder i guess.
Open /usr/bin/zmdc.pl (or /usr/bin/local/zmdc.pl depending on your installation) with an editor
Find this piece of code:Add this above it:Code: Select all
socket( CLIENT, PF_UNIX, SOCK_STREAM, 0 ) or Fatal( "Can't open socket: $!" ); my $saddr = sockaddr_un( SOCK_FILE ); my $server_up = connect( CLIENT, $saddr );
mastertheknifeCode: Select all
mkdir(ZM_PATH_SOCKS);
That's easy… I'll do that.
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel