Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: installing XML::LibXSLT.pm Perl5.14 on windows

by dasgar (Priest)
on Jun 18, 2012 at 20:52 UTC ( [id://976899]=note: print w/replies, xml ) Need Help??


in reply to installing XML::LibXSLT.pm Perl5.14 on windows

From the description section of XML::XSLT, it definitely is calling a library.

According to CPAN Testers (http://www.cpantesters.org/distro/X/XML-LibXSLT.html), it's passing on 5.14.0 and 5.14.2 on Windows (without Cygwin).

At the moment, I'm using DWIM Perl, which is based on Strawberry Perl 5.14.2 plus some additional module installed. One of the modules installed is the XML::LibXSLT module. So my guess is that for sure this should be able to be installed on Strawberry Perl 5.14.2. In turn, that leads me to believe that it can be install it on ActiveState's Perl.

Since you're using ActiveState's Active Perl, I would recommend using the PPM utility to install mingw and dmake from the default ActiveState repository. At that point, you should be able to install modules directly from CPAN. If it still looks like you're missing libxslt, you might want to check to see if you can install it from http://gnuwin32.sourceforge.net/packages/libxslt.htm.

Also, you can check with the ActiveState user forums to look for assistance.

Replies are listed 'Best First'.
Re^2: installing XML::LibXSLT.pm Perl5.14 on windows
by prashantktyagi (Scribe) on Jun 20, 2012 at 10:29 UTC
    Hi ,

    It's true that XML::LibXSLT comes with Strawberry perl. But I can't use that one because I have completed 99% work in activestate perl, so I can't go back now to strawberry perl and also not recommended in my organisation.

    Any way so that copies xslt from strawberry will work here in activestate perl?

    I downloaded complied library from
    http://www.xmlsoft.org/XSLT and pass to Makefile.pl like INC and LIBS as I get to know from Readme.
    perl Makefile.pl -INC=</inc> -LIBS=</lib>
    Error:
    Set up gcc environment - 3.4.5 (mingw-vista special r3)
    looking for -llibxslt... no
    libxslt not found
    Try setting LIBS and INC values on the command line
    Or get libxslt and 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.
    Still same error I am getting. Am I missing something silly?
    Thanks
        Hi Monks,

        Resolved lib dependency but now getting some compilation issue while building XML::LibXSLT...
        here is the error:

        Building and testing XML-LibXSLT-1.77 cp LibXSLT.pm blib\lib\XML\LibXSLT.pm C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -typemap C:\Perl\lib +\ExtUtils\typemap -typemap typemap LibXSLT.xs > LibXSLT.xsc && C:\Pe +rl\bin\perl.exe -MExtUtils::Command -e mv -- LibXSLT.xsc LibXSLT.c C:/Perl/site/bin/gcc.exe -c -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STR +ICT -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTE +XT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D_USE_32BIT_TIME_T -DHASATTRIBUT +E -fno-strict-aliasing -mms-bitfields -O2 -DVERSION=\"1.77\" + -DXS_VERSION=\"1.77\" "-IC:\Perl\lib\CORE" -DHAVE_BLANK -DHAVE_BL +ANK -DHAVE_EXSLT LibXSLT.c <readmore> C:/Perl/site/bin/gcc.exe -c -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STR +ICT -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTE +XT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D_USE_32BIT_TIME_T -DHASATTRIBUT +E -fno-strict-aliasing -mms-bitfields -O2 -DVERSION=\"1.77\" + -DXS_VERSION=\"1.77\" "-IC:\Perl\lib\CORE" -DHAVE_BLANK -DHAVE_BL +ANK -DHAVE_EXSLT perl-libxml-mm.c Running Mkbootstrap for XML::LibXSLT () C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 LibXSLT.bs C:\Perl\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"XML::LibXSLT\", 'DLBASE' => 'LibXSLT', ' +DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => +[]);" Set up gcc environment - 3.4.5 (mingw-vista special r3) dlltool --def LibXSLT.def --output-exp dll.exp C:\Perl\site\bin\g++.exe -o blib\arch\auto\XML\LibXSLT\LibXSLT.xs.dll +-Wl,--base-file -Wl,dll.base -mdll -L"C:\Perl\lib\CORE" LibXSLT.o + perl-libxml-mm.o C:\Perl\lib\CORE\perl514.lib C:\Perl\lib\CORE\lib +xslt.lib C:\Perl\lib\CORE\libxml2.lib C:\Perl\lib\CORE\zlib.lib C:\Pe +rl\lib\CORE\libexslt.lib C:\Perl\site\lib\auto\MinGW\lib\libkernel32. +a C:\Perl\site\lib\auto\MinGW\lib\libuser32.a C:\Perl\site\lib\auto\M +inGW\lib\libgdi32.a C:\Perl\site\lib\auto\MinGW\lib\libwinspool.a C:\ +Perl\site\lib\auto\MinGW\lib\libcomdlg32.a C:\Perl\site\lib\auto\MinG +W\lib\libadvapi32.a C:\Perl\site\lib\auto\MinGW\lib\libshell32.a C:\P +erl\site\lib\auto\MinGW\lib\libole32.a C:\Perl\site\lib\auto\MinGW\li +b\liboleaut32.a C:\Perl\site\lib\auto\MinGW\lib\libnetapi32.a C:\Perl +\site\lib\auto\MinGW\lib\libuuid.a C:\Perl\site\lib\auto\MinGW\lib\li +bws2_32.a C:\Perl\site\lib\auto\MinGW\lib\libmpr.a C:\Perl\site\lib\a +uto\MinGW\lib\libwinmm.a C:\Perl\site\lib\auto\MinGW\lib\libversion.a + C:\Perl\site\lib\auto\MinGW\lib\libodbc32.a C:\Perl\site\lib\auto\Mi +nGW\lib\libodbccp32.a C:\Perl\site\lib\auto\MinGW\lib\libcomctl32.a C +:\Perl\site\lib\auto\MinGW\lib\libmsvcrt.a C:\Perl\site\lib\auto\MinG +W\lib\libkernel32.a C:\Perl\site\lib\auto\MinGW\lib\libuser32.a C:\Pe +rl\site\lib\auto\MinGW\lib\libgdi32.a C:\Perl\site\lib\auto\MinGW\lib +\libwinspool.a C:\Perl\site\lib\auto\MinGW\lib\libcomdlg32.a C:\Perl\ +site\lib\auto\MinGW\lib\libadvapi32.a C:\Perl\site\lib\auto\MinGW\lib +\libshell32.a C:\Perl\site\lib\auto\MinGW\lib\libole32.a C:\Perl\site +\lib\auto\MinGW\lib\liboleaut32.a C:\Perl\site\lib\auto\MinGW\lib\lib +netapi32.a C:\Perl\site\lib\auto\MinGW\lib\libuuid.a C:\Perl\site\lib +\auto\MinGW\lib\libws2_32.a C:\Perl\site\lib\auto\MinGW\lib\libmpr.a +C:\Perl\site\lib\auto\MinGW\lib\libwinmm.a C:\Perl\site\lib\auto\MinG +W\lib\libversion.a C:\Perl\site\lib\auto\MinGW\lib\libodbc32.a C:\Per +l\site\lib\auto\MinGW\lib\libodbccp32.a C:\Perl\site\lib\auto\MinGW\l +ib\libcomctl32.a C:\Perl\site\lib\auto\MinGW\lib\libmsvcrt.a dll.exp LibXSLT.o:LibXSLT.c:(.text+0x51e4): undefined reference to `xsltLibxsl +tVersion' LibXSLT.o:LibXSLT.c:(.text+0x54d9): undefined reference to `xsltMaxDep +th' LibXSLT.o:LibXSLT.c:(.text+0x5562): undefined reference to `xsltMaxDep +th' LibXSLT.o:LibXSLT.c:(.text+0x55af): undefined reference to `xsltMaxDep +th' LibXSLT.o:LibXSLT.c:(.text+0x6835): undefined reference to `_imp__xmlM +alloc' LibXSLT.o:LibXSLT.c:(.text+0x6885): undefined reference to `_imp__xmlF +ree' LibXSLT.o:LibXSLT.c:(.text+0x6e4b): undefined reference to `_imp__xmlF +ree' LibXSLT.o:LibXSLT.c:(.text+0x7027): undefined reference to `_imp__xmlF +ree' LibXSLT.o:LibXSLT.c:(.text+0x8471): undefined reference to `xsltLibxsl +tVersion' LibXSLT.o:LibXSLT.c:(.text+0x8497): undefined reference to `xsltMaxDep +th' perl-libxml-mm.o:perl-libxml-mm.c:(.text+0x4d4): undefined reference t +o `_imp__xmlMalloc' perl-libxml-mm.o:perl-libxml-mm.c:(.text+0x4fc): undefined reference t +o `_imp__xmlMalloc' collect2: ld returned 1 exit status dmake.exe: Error code 129, while making 'blib\arch\auto\XML\LibXSLT\L +ibXSLT.xs.dll' -> FAIL Installing XML::LibXSLT failed. See C:\Documents and Settings\ +SVC_OVIIDBADM_AM\.cpanm\build.log for details. </readmore>

        Any idea about this....

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://976899]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-03-28 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found