X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=scripts%2Finstallation_check.pl;h=c7a7cdc5a249f4880e4706388f5f6cbf0f9d8ec3;hb=f24968aa78f4acfa6781c5ecf806bf350425fab1;hp=875c5651ddf4f7c4d8eb92e0dd64fd1ae66e351d;hpb=62a8aa81ec93edf284b3ffcc065120b3fe303fb5;p=kivitendo-erp.git diff --git a/scripts/installation_check.pl b/scripts/installation_check.pl index 875c5651d..c7a7cdc5a 100755 --- a/scripts/installation_check.pl +++ b/scripts/installation_check.pl @@ -1,5 +1,10 @@ #!/usr/bin/perl -w +BEGIN { + unshift @INC, "modules/override"; # Use our own versions of various modules (e.g. YAML). + push @INC, "modules/fallback"; # Only use our own versions of modules if there's no system version. +} + use SL::InstallationCheck; $| = 1; @@ -17,3 +22,19 @@ foreach my $module (@SL::InstallationCheck::required_modules) { print(" ok\n"); } } + +foreach my $module (@SL::InstallationCheck::optional_modules) { + print("Looking for $module->{name} (optional)..."); + if (!SL::InstallationCheck::module_available($module->{"name"})) { + print(" NOT found\n" . + " The module '$module->{name}' is not available on your system.\n" . + " While it is not strictly needed it provides extra functionality\n" . + " and should be installed.\n" . + " You can install it with the CPAN shell, e.g.\n" . + " perl -MCPAN -e \"install $module->{name}\"\n" . + " or download it from this URL and install it manually:\n" . + " $module->{url}\n\n"); + } else { + print(" ok\n"); + } +}