CC: | "Thayer, Craig" <Craig.Thayer [...] pegs.com> |
Subject: | Can't create Makefile.PL for XML-LibXML-Common required for XML-LibXML-1.69 |
Date: | Fri, 16 Jan 2009 16:32:19 -0600 |
To: | "bug-XML-LibXML [...] rt.cpan.org" <bug-XML-LibXML [...] rt.cpan.org> |
From: | "Thayer, Craig" <Craig.Thayer [...] pegs.com> |
I have downloaded and followed the directions for building XML::LibXML-1.69 for Windows, but the first build step fails to produce the Makefile.PL for LibXML-Common-0.13 (which is a prerequisite for LibXML).
The three required includes, libraries and binaries (i.e., iconv-1.9.2.win32, libxml2-2.7.2.win32, and zlib-1.2.3.win32) have been combined into the C:\Prog\LibXML directory per the README file instructions and I have downloaded XML-LibXML-Common-0.13 and XML-LibXML-1.69 as well.
But when I attempt to perform the first step to build LibXML-Common, here is the error I get:
C:\Archive\Perl Modules\XML-LibXML-Common-0.13>perl Makefile.PL INC=-Ic:\Prog\LibXML\include LIBS=-Lc:\Prog\LibXML\lib
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://www.libxml.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.
C:\Archive\Perl Modules\XML-LibXML-Common-0.13>
I need XML::LibXML for some QA tools development I'm doing so any help you can provide will be greatly appreciated.
My system info and the excerpt from the LibXML README file are below.
Thank you in advance.
Craig
My system info is:
OS: XP SP3
Perl version: 5.8.7
Perl Summary info (-V option):
Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
Platform:
osname=MSWin32, osvers=5.0, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cl', ccflags ='-nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DBUILT_BY_
ACTIVESTATE -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_RE
ADFIX',
optimize='-MD -Zi -DNDEBUG -O1',
cppflags='-DWIN32'
ccversion='12.00.8804', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -libpath:"C:\Perl\lib\CORE" -machine:x86'
libpth=\lib
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.
lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib
gnulibc_version='undef'
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt:ref,icf -libpath:"C:\Perl\lib\CORE" -machine:x86
'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
USE_SITECUSTOMIZE PERL_IMPLICIT_CONTEXT
PERL_IMPLICIT_SYS
Locally applied patches:
ActivePerl Build 813 [148120]
Iin_load_module moved for compatibility with build 806
PerlEx hacks for CGI::Carp
Less verbose ExtUtils::Install and Pod::Find
instmodsh upgraded from ExtUtils-MakeMaker-6.25
24699 ICMP_UNREACHABLE handling in Net::Ping
21540 Fix backward-compatibility issues in if.pm
Built under MSWin32
Compiled at Jun 6 2005 13:36:37
%ENV:
PERL5LIB="C:\Perl\lib;C:\Perl\site\lib;C:\Pegasus\Perl\lib"
@INC:
C:\Perl\lib
C:\Perl\site\lib
C:\Pegasus\Perl\lib
C:/Perl/lib
C:/Perl/site/lib
.
C:\Archive\Perl Modules\XML-LibXML-Common-0.13>
Here are the README notes I am following for building LibXML under Windows (my OS is XP SP3):
Notes for Microsoft Windows
===========================
Thanks to Randy Kobes there is a pre-compiled PPM package available on
http://theoryx5.uwinnipeg.ca/ppmpackages/
Usually it takes a little time to build the package for the latest release.
If you want to build XML::LibXML on Windows from source, you can use the
following instructions contributed by Christopher J. Madsen:
These instructions assume that you already have your system set up to compile
modules that use C components.
You need:
Show quoted text
> iconv-VERSION.win32.zip
> libxml2-VERSION.win32.zip
> zlib-VERSION.win32.zip
Download the latest version of each. (Each package will probably have a
different version.) When you extract them, you'll get directories named
iconv-VERSION.win32, libxml2-VERSION.win32, and zlib-VERSION.win32, each
containing bin, lib, and include directories.
Combine all the bin, include, and lib directories under c:\Prog\LibXML. (You
can use any directory you prefer; just adjust the instructions accordingly.)
Get the latest version of XML-LibXML-Common and XML-LibXML from CPAN. Extract
them.
Issue these commands in the XML-LibXML-Common-VERSION directory:
Show quoted text> perl Makefile.PL INC=-Ic:\Prog\LibXML\include LIBS=-Lc:\Prog\LibXML\lib
> nmake
> copy c:\Prog\LibXML\bin\*.dll blib\arch\auto\XML\LibXML\Common
> nmake test
> nmake install
(Note: Some systems use dmake instead of nmake.)
By copying the libxml2 DLLs to the arch directory, you help avoid conflicts
with other programs you may have installed that use other (possibly
incompatible) versions of those DLLs.
Issue these commands in the XML-LibXML-VERSION directory:
Show quoted text> perl Makefile.PL INC=-Ic:\Prog\LibXML\include LIBS=-Lc:\Prog\LibXML\lib
> nmake
> nmake test
> nmake install
Message body is not shown because it is too large.