Page 1 of 1

[Ok]can't build database with rpm install with Mandriva 2006

Posted: Thu Mar 23, 2006 11:41 pm
by gloup
Hi
I try to install ZM 1.22 from rpm on a Mandriva 2006 and follow step by step instruction.
when i run /usr/lib/zm/bin/sminit i get :
[root@VDRBOX Zoneminder]# /usr/lib/zm/bin/zminit
/usr/lib/zm/bin/zminit: line 13: chkmysql: command not found
/usr/lib/zm/bin/zminit: line 18: syntax error near unexpected token `}'
/usr/lib/zm/bin/zminit: line 18: ` }'
:?
I use Mysql 4.1.12.
libmysql14-devel is installed, where can i found this 'chkmysql' ?

Posted: Fri Mar 24, 2006 1:35 am
by cordel
In /usr/lib/zm/bin/zminit
Edit the file and remove the call on line 33
##chkmysql

Regards,
Corey

Posted: Fri Mar 24, 2006 6:15 am
by gloup
Thanks for reply so quickly... you never sleep :)
I just try this but no change :cry:
I get the same error, the problem seems to be in line 13 !
I've try to intall from tar.bz on an over computer and the db was created correctly, can i backup db and restore it on this new pc ?
scuse my poor English wrote :oops:

Posted: Fri Mar 24, 2006 6:24 am
by cordel
Okay,
Remove the function and everything in the braces and the braces with it.

Code: Select all

chkmysql(){
    #FIXME
    [ -f /etc/init.d/mysqld ] MySQL_INIT=/etc/init.d/mysqld
    [ -f /etc/init.d/mysqld-max ] MySQL_INIT=/etc/init.d/mysqld-max
    $MySQL_INIT status | grep 'running' >/dev/null 2>&1 || $MySQL_INIT start
    }
This was going to be a function to check and make sure the database was running. I haven't finished it and it is not called so it will not hurt to remove it.

Cheers,
Corey

Posted: Fri Mar 24, 2006 6:47 am
by gloup
:D Yes, it run
many thanks

Posted: Fri Mar 24, 2006 8:06 am
by cordel
No Problem. Glad to get it sorted out.
Cheers,
Corey