[Fusioninventory-devel] HP RAID support on Windows

Gonéri Le Bouder goneri at rulezlan.org
Sun May 30 16:47:53 UTC 2010


2010/5/30 Pakdel Amir <a.pakdel at karafarinbank.net>:
> Hi Gonéri,
>
> On windows, when there is another version of perl installed prior to the FusionInventory Agent, the first installation of perl sets the PERL5LIB environment variable and that confuses the perl that ships with FusionInventory Agent and results in an error that says some .dll file of perl are not found!
> After clearing the PERL5LIB environment variable by something like "set PERL5LIB=" the command mentioned earlier works just fine.
> Moreover, on such systems, the WebUI does not work either.
> Can it be considered a bug?
I suggest this solution. If you're ok with that. I'll add it with a
--disable-perl5lib parameter and ask Gubas to turn if on in the
Windowd Package.

Cheers,

diff --git a/fusioninventory-agent b/fusioninventory-agent
index 2224463..5aee17e 100755
--- a/fusioninventory-agent
+++ b/fusioninventory-agent
@@ -22,6 +22,9 @@
 use strict;
 use warnings;

+
+$ENV{PERL5LIB}=undef;
+
 my $devlib;
 foreach (@ARGV) {
     if (/^--devlib$/) {



-- 
     Gonéri Le Bouder



More information about the Fusioninventory-devel mailing list