[Fusioninventory-devel] Building the FusionInventory Agent Windows package...

Tomás Abad tabadgp at gmail.com
Tue Jul 17 23:25:50 UTC 2012


   Hello Guillaume,

On 17/07/12 19:51, Guillaume Rousse wrote:
> Le 17/07/2012 18:44, Tomás Abad a écrit :
>> Hello to everybody,
>> 
>> As some of you know, I'm writing a new Windows installer for 
>> FusionInventory Agent. This morning I have started to building the
>>  package (Perl, Perl modules, FusionInventory Agent, commands,
>> etc.) that the installer should to install into the Windows
>> client.
>> 
>> At the moment I have alone downloaded the portable edition of 
>> Strawberry Perl May 2012 v5.16.0.1, for 32 and 64 bits.
>> 
>> Whether I'm not wrong, the Perl modules required for 
>> FusionInventory Agent v2.2.3-1 are:
>> 
>> .- Compress-Zlib-2.015 (Last version in CPAN: 
>> Compress-Zlib-2.052)** .- Crypt-SSLeay-0.57 (Last version in CPAN: 
>> Crypt-SSLeay-0.58)**
> Deprecated in favor of IO::Socket::SSL
> 
>> .- Digest-MD5-2.39 (Last version in CPAN: Digest-MD5-2.52)** .- 
>> Net-IP-1.25 (This is the last version in CPAN) .- Net-NBName-0.26 
>> (This is the last version in CPAN) .- Net-SNMP-v6.0.0 (Last
>> version in CPAN: Net-SNMP-v6.0.1)**
> You need 6.0.1 to avoid a warning with perl 5.14 and above
> 
>> .- Module-Install-0.95 (Last version in CPAN: 
>> Module-Install-1.06)**
> Useless for end user
> 
>> .- File-Copy-Recursive-0.38 (This is the last version in CPAN) .- 
>> File-ShareDir-1.02 (Last version in CPAN: File-ShareDir-1.03)**
> Useless with agent 2.2.x.
> 
>> .- UNIVERSAL-require-0.13 (This is the last version in CPAN) .- 
>> Win32-Daemon (Last version in CPAN: Win32-Daemon-20110117)** .- 
>> Win32-OLE-0.1709 (This is the last version in CPAN) .- 
>> XML-LibXML-1.70 (Last version in CPAN: XML-LibXML-2.0002)** .- 
>> XML-Simple-2.18 (Last version in CPAN: XML-Simple-2.20)**
> Both of them are useless with agent 2.2.x.
> 
> You're missing XML::TreePP, LWP, File::Which and Text::Template.

 Oops!

> You apparently used the 2.1.x dependencies list, you should rather 
> check Makefile.PL and README files.

   Could be but I only follow the requirements that appear in the file
'fusioninventory-nsis-2.2.3-1\nsis\execute_compile.cmd' inside of
http://prebuilt.fusioninventory.org/stable/windows-i386/fusioninventory-agent_windows-i386_2.2.3-1-nsis-files.tar.gz.
Maybe this package is out of date.

   After follow your indications this is the list of Perl modules that I
will take into account to build the package.

      .- Digest-MD5-2.52 (Digest::MD5)
            (The last version in CPAN)

      .- File-Which-1.09 (File::Which)
            (The last version in CPAN)
            (Included into Strawberry Perl v5.16.0.1 - 32 & 64 bits)

      .- HTTP-Daemon-6.01 (HTTP::Daemon)
            (The last version in CPAN)
            (Included into Strawberry Perl v5.16.0.1 - 32 & 64 bits)

      .- IO-Compress-2.052 (Compress::Zlib)
            (The last version in CPAN)

      .- IO-Socket-SSL-1.76 (IO::Socket::SSL)
            (The last version in CPAN)

      .- libwww-perl-6.04 (LWP)
            (The last version in CPAN)
            (Included into Strawberry Perl v5.16.0.1 - 32 & 64 bits)

      .- LWP-Protocol-https-6.03 (LWP::Protocol::https)
            (The last version in CPAN)
            (Included into Strawberry Perl v5.16.0.1 - 32 & 64 bits)

      .- Net-Cups-0.61 (Net::CUPS)
            (The last version in CPAN)

      .- Net-IP-1.25 (Net::IP9
            (The last version in CPAN)

      .- Text-Template-1.45 (Text::Template)
            (The last version in CPAN)

      .- UNIVERSAL-require-0.13 (UNIVERSAL::require)
            (The last version in CPAN)

      .- Win32-OLE-0.1709 (Win32::OLE)
            (The last version in CPAN)
            (Included into Strawberry Perl v5.16.0.1 - 32 & 64 bits)

      .- Win32-TieRegistry-0.26 (Win32::TieRegistry)
            (The last version in CPAN)
            (Included into Strawberry Perl v5.16.0.1 - 32 & 64 bits)

      .- XML-TreePP-0.41 (XML:TreePP)
            (The last version in CPAN)

>> On another hand, Strawberry Perl May 2012 v5.16.0.1 includes the 
>> following Perl modules by default:
>> 
>> Strawberry Perl May 2012 v5.16.0.1 32 bits 
>> ------------------------------------------ .- (60) 
>> Crypt-SSLeay-0.58 ** .- (92) File-Copy-Recursive-0.38 .- (99) 
>> File-ShareDir-1.03 ** .- (240) Win32-OLE-0.1709 .- (248) 
>> XML-LibXML-1.98 ** .- (254) XML-Simple-2.18
>> 
>> (See http://strawberryperl.com/release-notes/5.16.0.1-32bit.html)
>> 
>> 
>> Strawberry Perl May 2012 v5.16.0.1 64 bits 
>> ------------------------------------------ .- (56) 
>> Crypt-SSLeay-0.58 ** .- (88) File-Copy-Recursive-0.38 .- (95) 
>> File-ShareDir-1.03 ** .- (234) Win32-OLE-0.1709 .- (242) 
>> XML-LibXML-1.98 ** .- (248) XML-Simple-2.18
>> 
>> (See http://strawberryperl.com/release-notes/5.16.0.1-64bit.html)
>> 
>> And here come my third question
>> 
>> c) Is there any problem if I make use of these Perl modules 
>> included in Strawberry Perl or it's better whether I make use the 
>> last Perl modules releases?
> That's difficult to give an authoritive answer here. I'm usually 
> running latest version of all the modules, but on Linux only. Just 
> try and see :)

   I will try first with the Perl modules (whether they are the last)
included into Strawberry Perl.

>> Another question. Like there are Strawberry Perl May 2012 v5.16.0.1
>> for 32 and 64 bits
>> 
>> d) Is there any problem if I make use of Strawberry Perl May 2012 
>> v5.16.0.1 32bits to build an installer for Microsoft Windows
>> 32bits platforms and Strawberry Perl May 2012 v5.16.0.1 64bits to
>> build another installer for Microsoft Windows 64bits platforms?
> The 64bits version of the agent is unlikely to works out-of-the box,
>  mainly because of registry issues, but that's the way to go IMHO.

   I'll try to do only a FusionInventory Agent installer for both
platforms. The installer will install Perl 32 bits or 64 bits based on the
target Windows platform.

   Thanks for your help Guillaume.

-- 
Tomas Abad
Ingeniero de Sistemas / Systems Engineer




More information about the Fusioninventory-devel mailing list