Installation problem

Support and queries relating to all previous versions of ZoneMinder
Locked
johanl
Posts: 2
Joined: Sun Sep 14, 2003 6:20 pm

Installation problem

Post by johanl »

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.
User avatar
tech_fixer
Posts: 132
Joined: Tue Jul 29, 2003 3:07 pm

Re: Installation problem

Post by tech_fixer »

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
johanl
Posts: 2
Joined: Sun Sep 14, 2003 6:20 pm

Re: Installation problem

Post by johanl »

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?
ajpalm
Posts: 60
Joined: Thu Aug 28, 2003 1:02 pm

Re: Installation problem

Post by ajpalm »

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.
"
tray
Posts: 12
Joined: Tue Nov 25, 2003 9:31 am

Re: Installation problem

Post by tray »

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
Locked