2.3. Running checksetup.pl

The checksetup.pl script located in the bin directory must be run before Codestriker can be used, or after each upgrade. There is no harm in running it as many times as you like. The purpose of the script is to ensure all of the necessary pieces on your system are installed, and tells you how to install anything that is missing. The other purpose of the script is to create the Codestriker database, and perform any necessary data migrations.

For Window systems, edit the first line from the files bin/checksetup.pl and bin/codestriker.pl.base. For example, if you have Perl installed in c:\perl\perl, then the first line of bin/checksetup.pl should look like:

#!c:/perl/perl -w
The first line of bin/codestriker.pl.base should look like:
#!c:/perl/perl -wT
Note the use of forward slashes.

Perl is available by default for all *NIX systems. For Windows, you can download it for free from http://www.activestate.com/Products/Download/Download.plex?id=ActivePerl.

To run checksetup.pl under *NIX, do the following:

% cd /codestriker/install/location/bin
% ./checksetup.pl
For Windows, you need to do something like the following from the command prompt:
% cd c:\codestriker\bin
% checksetup.pl

This will tell you what missing Perl modules you have, and how to install them. It will then attempt to try and initialise the Codestriker database. Make sure your Codestriker database has been created and the database system is running, before running this script.