Re: Installing XML::LibXSLT (ActiveState/32-bit)

Bjoern Hoehrmann <[email protected]> Thu, 29 Sep 2011 20:35:37 +0200
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
* Daniel Perrett wrote:
>"The general workflow would be that you get libxslt, compile it,"
>So do I need to be compiling LibXSLT.dll from source and definitely not 
>using the precompiled version (with or without the accompanying .lib and 
>.h files )? That makes things trickier. 

The XS module has to be compiled (unless someone releases a pre-compiled
version like in the form of a PPM module) and that requires the .h files
and likely .lib files (it depends a bit on which compiler you use, and
generally speaking .lib files can be derived from .dlls). It is possible
to use pre-compiled binaries for libxslt when compiling the XS module,
but care has to be taken to account for compiler incompatibilities and
related issues. Personally I have usually found it more reliable to com-
pile everything myself, but also much more inconvenient.

>" ensure that Makefile.PL can find the library headers and other files, 
>and then
>use the standard perl Makefile.PL; make test; make install process."
>One problem for me has been working out where Makefile.PL wants these 
>things (dlls, .exe, .lib, .h?). Unless I'm being a bit thick, it's not 
>obvious where it is looking. 

According to the README you should use

  % perl Makefile.PL INC="..." LIBS="..."

Where INC points to a directory that includes the header files and LIBS
points to a directory that includes the library (.lib) files. It may be
that a higher level directory has to be used, in case the XS module has
references like "libxslt/libxslt.h" in which case you would point to the
directory that contains a libxslt directory which in turn has libxslt.h.
I have not checked whether this is the case here or what the names are.
-- 
Björn Höhrmann · mailto:[email protected] · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs