in reply to Unable to load LibXSLT.dll on Perl 5.16

"Is it possible to upgrade from 5.6 to 5.16 with the same dll files?"

That's quite the jump, but to answer your question, no this isn't going to work. I suggest you use autobundle from cpan to generate a bundle of your current modules used by 5.6. You can then inspect this bundle, editing if it required, and use it to install the modules you need in your new distribution. Note if you're using a perl as old as 5.6 the modules you're using may be very old too. You should check them for significant changes.

"I wanted to use the same perl for 64 bit machine as wel. Is it possible to use single perl for both 32 & 64 bit machine?"

In this case you'd have to use a 32bit Perl, as a 64bit Perl won't work on a 32bit operating system.

Replies are listed 'Best First'.
Re^2: Unable to load LibXSLT.dll on Perl 5.16
by jes (Novice) on May 24, 2013 at 09:12 UTC

    Thanks for the reply.

    True. Few modules were missing. So,I used CPAN to install the required modules. It was easy to download the modules using CPAN and PPM. Unfortunately I found problems with LibXML and LibXSLT. I had used "PPM install XML::LibXML" to install supporting files. Hence LibXML issue was solved. Similarly i tried the same for XML::LibXSLT. But this did not work out because there is no supporting files as described in "http://code.activestate.com/ppm/XML-LibXSLT/".

    So I tried all the possible ways to build .dll files for LibXSLT. But none of them supported my machine.

    Henceforth I copied the LibXSLT that comes with strawberry perl and it worked smoothly on 32 bit machine

    Similarly I tried on 64 bit machine. But they did not support

    I would like to know is there any possible way to solve this?

    Thanks

      When working on Microsoft Windows I use Strawberry Perl, it comes with everything I need out of the box (C compiler, build tools) and has many handy modules bundeled, including the one you have issue with. When installing modules it's important to actually read the documentation. Many modules rely on third party tools or libraries. The README explains what is required to build this module.

      "Henceforth I copied the LibXSLT that comes with strawberry perl and it worked smoothly on 32 bit machine

      Similarly I tried on 64 bit machine. But they did not support"

      Yeah, this isn't going to work, they're different architectures, the code has been compiled for one target and you expect it to work on another. This isn't going to happen.

      64-bit and 32-bit are different.

      Why do you expect 32-bit DLLs to work with a 64-bit Perl?

      Have you considered using the 64bit Perl releases of Strawberry Perl? They come with XML::LibXML included.

      Building XML::LibXML needs external libraries and reading the documentation of XML::LibXML. If that is not to your liking, I recommend using Strawberry Perl.

        OK:) So i tried copying LibXSLT of 64 bit Strawberry Pearl. But this did not work. My Organisation does not support for Strawberry Perl moreover i have completed most of my work in Active perl itself. Kindly suggest if there is any other possible way

        Thanks jes