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