Perl module help for windows users

Posted by Red Katipo on 2007-08-19 16:14
Forums: PPM | OS: Windows XP Pro

I have been trying in vain to install this XML::LibXML for a while now.

I can install it via CPAN but it cannot find libxml2 so cannot build it. I cannot find the package under my PPM installer.
I have downloaded many Binaries and tried to install them using NMake for Windows. I have copied MSXML2.dll into system32. I have Googled for LibXML2 installation instructions. I have been to PerlMonks, uwinnipeg, xmlsoft etc but still cannot find any instructions.

Does anyone know of a set of instructions for getting, making and installing packages with dependencies under windows.

I am at the stage were I may just rewrite my perl TCP server (that uses LibXML) as it seems easier than getting this package set up.

Any help would be greatly appreciated.
Thanks.

gangabass | Sun, 2007-08-19 17:23

Which Perl version do you have?

Red Katipo | Sun, 2007-08-19 19:52

ActivePerl-5.8.8.822.

I have just installed this on a new Windows XP VMWare virtual machine. I am creating this to replace an old NT version. Installing a different version of Perl, if nessasary, is not a problem. The old VM was setup by someone with more Perl module experience than me. I am a Delphi developer and am not set up with any C compilers etc.

***********************************************
An example of my frustration :-(

Quote from CPAN.org
"...Prior to installation you MUST have installed the libxml2 library. You can get the latest libxml2 version from
http://xmlsoft.org
Without libxml2 installed this module will neither build nor run...."

Quote from xmlsoft.org
"Installation
...# Where can I get libxml ?

The original distribution comes from xmlsoft.org or gnome.org

Most Linux and BSD distributions include libxml, this is probably the safer way for end-users to use libxml.

David Doolin provides precompiled Windows versions at http://www.ce.berkeley.edu/~doolin/code/libxmlwin32/"

Quote from www.ce.berkeley.edu
"Everything is in the tar.gz file, which may be extracted by
winzip. Most of the header files have been moved to
libxml, put this in your project->settings->include path.
Compiled libraries are in the top-level (source) directory
as libxml.lib and libxmld.lib (debug). The same problems
with previous builds remain; build warnings are in the
file buildwarn2.1. Enjoy.

libxml2.0 builds.

The tar.gz has everything necessary. Winzip will handle it.
There is a directory called `libxmlwin32' that has workspace
and project files. These should build on devstudio 5."
************************************************************

Most of my leads follow this sort of path to failure.

What is it that I am missing here, I just want to use a Perl XML module.

Also as suggested by http://supportweb.cs.bham.ac.uk I have tried creating a directory C:\toolkit, added the LibXML2.dll here and added it to my path variable. I also created a LIB and INC variable that points to the toolkit all of which does not help (the cpan build processcannot find LibXML2).

I have also tried editing the makefile inside the LibXML folder to use nMake.

I know there is an easy answer out there as this was setup running on the NT VM 2 years ago.

I am sorry for the length of this comment but as my TZ is GMT+12 most replys I get will have a 1/2 day turn around if any extra questions are asked.

Red Katipo | Tue, 2007-08-21 12:38

Well after two days I have finally got it going.

I had been trying CPAN originally as the LibXML package was not showing in PPM.
As part of my original process I had manually installed LibXML2.dll from xmlsoft.org and added it to my %Path%. This process was a failure.

I then recieved advice on another thread of which repository to add to PPM to get XML::LibXML. I then reinstalled perl from scratch and used PPM to load all I needed including dependencies.

This turned out the LibMXL2.dll I had originally downloaded was incompatable with the XML::LibXML version I was now downloading using PPM, but the new version was not being downloaded because of the existance of the other one.

I will be using PPM exclusively to download modules in future.

reynardine | Wed, 2007-11-14 16:49

I'm having the same problem, and am at my wits' end. Could you be so kind as to tell me which repository you added to PPM???

I would be most appreciative...

Red Katipo | Sun, 2007-11-18 12:34

geo_v123 (not verified) | Tue, 2009-07-21 23:54

Try Install Perl Module - Automated Script

Nowadays It will be very difficult to install Perl modules to our system. This is an automated script developed in Perl to install Perl modules and all of its dependent modules with in a single step.

http://sourceforge.net/projects/moduleperl/

It will help you.

Regards,
Geo Varghese
http://www.seofreetools.net/
http://www.gethostingplans.com/