
ITSAMB
Novice
Feb 19, 2009, 12:16 PM
Post #4 of 8
(3018 views)
|
|
Re: [FishMonger] Help - Install XML-LibXML on windows
[In reply to]
|
Can't Post
|
|
You may need to build the module from source. Hi FishMonger, I was trying to avoid that, as I may need to do in production later and so was trying to find minimal steps required. Any way, I did try that with source as well. But I think I am not clear here. I downloaded the XML-LibXML-1.69 from cpan. I read the README file and followed the instructions. 1. Download the iconv-VERSION.win32.zip, libxml2-VERSION.win32.zip, zlib-VERSION.win32.zip and unzip it. 2. Combine all the bin, include, and lib directories under a directory and then 3. Tried following command from the folder where the XML-LibXML-1.69 is unzipped. iwperl Makefile.PL INC=-ID:\iw-home\iw-perl\site\lib\LibXML\include LIBS=-LD:\iw-home\iw-perl\site\lib\LibXML\lib But, it gives following error enable native perl UTF8 looking for -lxml2... no looking for -llibxml2... no libxml2 not found Try setting LIBS and INC values on the command line Or get libxml2 from http://xmlsoft.org/ If you install via RPMs, make sure you also install the -devel RPMs, as this is where the headers (.h files) are. Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter to see the exact reason why the detection of libxml2 installation failed or why Makefile.PL was not able to compile a test program. It mentions that, your system should be set up to compile modules that use C components. Does that mean, I need to have a separate C compiler here? If yes, could you suggest any simple C compiler?
|