Installations-Check-Modul. Das Script installation_check.pl nutzt es.
[kivitendo-erp.git] / scripts / installation_check.pl
1 #!/usr/bin/perl -w
2
3 use SL::InstallationCheck;
4
5 $| = 1;
6
7 foreach my $module (@SL::InstallationCheck::required_modules) {
8   print("Looking for $module->{name}...");
9   if (!SL::InstallationCheck::module_available($module->{"name"})) {
10     print(" NOT found\n" .
11           "  The module '$module->{name}' is not available on your system.\n" .
12           "  Please install it with the CPAN shell, e.g.\n" .
13           "    perl -MCPAN -e \"install $module->{name}\"\n" .
14           "  or download it from this URL and install it manually:\n" .
15           "    $module->{url}\n\n");
16   } else {
17     print(" ok\n");
18   }
19 }