Umstellung der PDF-Erzeugungsroutine des ReportGenerator auf die Verwendung des Perl...
[kivitendo-erp.git] / scripts / installation_check.pl
1 #!/usr/bin/perl -w
2
3 BEGIN {
4   unshift @INC, "modules/override"; # Use our own versions of various modules (e.g. YAML).
5   push    @INC, "modules/fallback"; # Only use our own versions of modules if there's no system version.
6 }
7
8 use SL::InstallationCheck;
9
10 $| = 1;
11
12 foreach my $module (@SL::InstallationCheck::required_modules) {
13   print("Looking for $module->{name}...");
14   if (!SL::InstallationCheck::module_available($module->{"name"})) {
15     print(" NOT found\n" .
16           "  The module '$module->{name}' is not available on your system.\n" .
17           "  Please install it with the CPAN shell, e.g.\n" .
18           "    perl -MCPAN -e \"install $module->{name}\"\n" .
19           "  or download it from this URL and install it manually:\n" .
20           "    $module->{url}\n\n");
21   } else {
22     print(" ok\n");
23   }
24 }
25
26 foreach my $module (@SL::InstallationCheck::optional_modules) {
27   print("Looking for $module->{name} (optional)...");
28   if (!SL::InstallationCheck::module_available($module->{"name"})) {
29     print(" NOT found\n" .
30           "  The module '$module->{name}' is not available on your system.\n" .
31           "  While it is not strictly needed it provides extra functionality\n" .
32           "  and should be installed.\n" .
33           "  You can install it with the CPAN shell, e.g.\n" .
34           "    perl -MCPAN -e \"install $module->{name}\"\n" .
35           "  or download it from this URL and install it manually:\n" .
36           "    $module->{url}\n\n");
37   } else {
38     print(" ok\n");
39   }
40 }