Hi,
When I try to run perl ./zmconfig.pl it gives me an error at line 30:
Can't locate Term/ReadKey.pm
How can I solve this? That file does not exists on my Mandrake 9.0 box.
Installation problem
- tech_fixer
- Posts: 132
- Joined: Tue Jul 29, 2003 3:07 pm
Re: Installation problem
Seems like you are missing a PERL module.
ZoneMinder relies heavily on the Perl programming language, and specifically the installed Perl modules. The one you are missing is the Term::ReadKey module.
If you are not familiar with downloading, compiling, testing and installing modules manually, I recommend using the excellent Webmin web-based management utility for Linux and Unix. In mandrake it usually comes installed by default, or look for it in the install CD's. Else, simply go to www.webmin.com and download the latest RPM file offered. If you have a slow Internet connection, sit back and relax because it is a 6Mb download that may take some time. Once installed, log into Webmin, click on "Others", click on "Perl Modules", follow the on-screen prompts and you should have that module installed soon.
You may be missing more modules later on, and if an error message is not displayed on-sceen, you may have to look for it in the directory you specify for log files when you finally run zmconfig.pl. In the log files, whatever filename finishes with ".pm" is probably a perl module you'll need to install.
Good luck,
Jose Rodriguez
ZoneMinder relies heavily on the Perl programming language, and specifically the installed Perl modules. The one you are missing is the Term::ReadKey module.
If you are not familiar with downloading, compiling, testing and installing modules manually, I recommend using the excellent Webmin web-based management utility for Linux and Unix. In mandrake it usually comes installed by default, or look for it in the install CD's. Else, simply go to www.webmin.com and download the latest RPM file offered. If you have a slow Internet connection, sit back and relax because it is a 6Mb download that may take some time. Once installed, log into Webmin, click on "Others", click on "Perl Modules", follow the on-screen prompts and you should have that module installed soon.
You may be missing more modules later on, and if an error message is not displayed on-sceen, you may have to look for it in the directory you specify for log files when you finally run zmconfig.pl. In the log files, whatever filename finishes with ".pm" is probably a perl module you'll need to install.
Good luck,
Jose Rodriguez
Re: Installation problem
I see this error message on the ZM console:
Table 'zm.Events' doesn't exist
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/html/zm_html.php on line 76
The installation did not create the tables in the SQL database..How can I fix that?
Table 'zm.Events' doesn't exist
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/html/zm_html.php on line 76
The installation did not create the tables in the SQL database..How can I fix that?
Re: Installation problem
I think you missed this step here in building your MySQL database
"For a new installation the simplest way to create your database and users is as follows,
mysql mysql < zmschema.sql
mysql mysql
grant select,insert,update,delete on <your database name>.* to '<your first username>'@localhost identified by '<your first password>';
grant select on <your database name>.* to '<your second username>'@localhost identified by '<your second password>'
quit
mysqladmin reload
You may need to supply a username and password to the mysql commands in the first place to give yourself sufficient privileges to perform the required commands. If you want to host your database on a different machine than that which ZoneMinder is running on then use the hostname of the remote machine instead of localhost.
"
"For a new installation the simplest way to create your database and users is as follows,
mysql mysql < zmschema.sql
mysql mysql
grant select,insert,update,delete on <your database name>.* to '<your first username>'@localhost identified by '<your first password>';
grant select on <your database name>.* to '<your second username>'@localhost identified by '<your second password>'
quit
mysqladmin reload
You may need to supply a username and password to the mysql commands in the first place to give yourself sufficient privileges to perform the required commands. If you want to host your database on a different machine than that which ZoneMinder is running on then use the hostname of the remote machine instead of localhost.
"
Re: Installation problem
Hello Peter
Yep, I changed directory to the location of the schema then
mysql mysql <zmschema.sql -uroot -p@@@@ where @@@ is the password.
and this produced the prompt but no warnings so I assume it has worked.
I'm posting this for mine & the linux newbie's well being.
Pete: keep up the good work
Yep, I changed directory to the location of the schema then
mysql mysql <zmschema.sql -uroot -p@@@@ where @@@ is the password.
and this produced the prompt but no warnings so I assume it has worked.
I'm posting this for mine & the linux newbie's well being.
Pete: keep up the good work