Skip Menu |

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 69610
Status: resolved
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: nimhurchu [...] web.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Strawberry Perl and XML::LibXML
Date: Wed, 20 Jul 2011 13:00:49 +0200
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: NiMhurchu <nimhurchu [...] web.de>
Hi all, I have downloaded strawberry-perl-5.12.3.0-64bit.zip from http://strawberryperl.com/download/5.12.3.0/. I use this version on Windows 7 SP1 64bit. The extracted files sit in c:\portableapps\portableapps\perl. perl\bin\perl.exe relocation.pl.bat ran successfully. I did not run perl\bin\perl.exe update_env.pl.bat, because I prepend all paths manually (e. g. c:\portableapps\portableapps\per\perl\bin\perl.exe script.pl). I had a hard time unsuccessfully attempting to get XML::LibXML installed until I realized that it already is part of the package in the \vendor folder. libxml2.dll sits in "C:\PortableApps\PortableApps\Perl\perl\vendor\lib\auto\XML\LibXML\LibXML.dll" So I used "use lib 'C:/PortableApps/PortableApps/Perl/perl/vendor/lib';" to have Perl search for it in that folder. Nevertheless Perl would not begin/compile: Can't load 'C:/PortableApps/PortableApps/Perl/perl/vendor/lib/auto/XML/LibXML/LibXML.dll' for module XML::LibXML: load_file: Das angegebene Modul wurde nicht gefunden at C:/PortableApps/PortableApps/Perl/perl/lib/DynaLoader.pm (^^ "Das angegebene Modul wurde nicht gefunden := the requested module could not be found). line 200. at C:/PortableApps/PortableApps/Perl/perl/lib/DynaLoader.pm line 153 BEGIN failed--compilation aborted at C:/PortableApps/PortableApps/Perl/perl/vendor/lib/XML/LibXML.pm line 153. Compilation failed in require at D:\Dokumente\Perl\flip\flip2.pl line 21. BEGIN failed--compilation aborted at D:\Dokumente\Perl\flip\flip2.pl line 21. An investigation with Sysinternal's Process Monitor shows that Perl is looking for C:\PortableApps\PortableApps\Perl\perl\vendor\lib\auto\XML\LibXML\*libxml2-2__.dll* rather than C:\PortableApps\PortableApps\Perl\perl\vendor\lib\auto\XML\LibXML\libxml2.dll Is that correct? Best Regards, Hans
Show quoted text
> An investigation with Sysinternal's Process Monitor shows that Perl is
> looking for
> C:\PortableApps\PortableApps\Perl\perl\vendor\lib\auto\XML\LibXML\*libxml2-
> 2__.dll*
> rather than
> C:\PortableApps\PortableApps\Perl\perl\vendor\lib\auto\XML\LibXML\libxml2.dll
>
> Is that correct?

No.

1/ perl tries to load C:\PortableApps\PortableApps\Perl\perl\vendor\lib\auto\XML\LibXML\libxml2.dll (which is the output of XML::LibXML build process) that needs libxml2-2__.dll (which is an external library delivered with strawberry perl)

2/ there should be libxml2-2__.dll file in your C:\PortableApps\PortableApps\c\bin directory

3/ C:\PortableApps\PortableApps\c\bin needs to be in your PATH

4/ or you can do an ugly hack and copy C:\PortableApps\PortableApps\c\bin\libxml2-2__.dll to C:\PortableApps\PortableApps\perl\bin\libxml2-2__.dll

--
kmx
should work with latest strawberry perl 5.14.2.1 which is available also in portable addition