On Sun, 24 Oct 2004, Perry Valdez wrote:

> I installed and downloaded the latest version of Apache, Apache
> 2.0.52, on my Windows XP SP 1 machine. I tested the Apache server by
> loading my test Web page on my browser and running my test CGI
> scripts. Apache worked fine.
>
> I also downloaded and installed the latest version of mod_perl using
> ActiveState's PPM. Then I edited httpd.conf and added the following
> line:
>
> LoadModule perl_module modules/mod_perl.so
>
> I restarted Apache and tested it again. It still worked fine.
>
> Then I downloaded and installed Embperl via PPM again, using the
> following command:
>
> ppm http://theoryx5.uwinnipeg.ca/ppms/Embperl-1.ppd
>
> (The name "Embperl-1" stands for "Embperl 2 for mod_perl 1.x.")

Unfortunately, the "Embperl-1" package is for Embperl 1
for mod_perl 1 - it won't function with mod_perl 2. Gerald
is working on porting Embperl 2 to a multi-threaded
environment (like Win32) for Apache 2, but it's non-trivial.


> Next, I created a test Perl script called "tester.pl",
> with the following code:
>
> -------
> #!/usr/bin/perl
>
> use XML::LibXML;
> use Embperl;
>
> use strict;
> use warnings;
>
> my $xml = '<root><name>Perry</name></root>';
> my $parser = XML::LibXML->new;
> my $tree = $parser->parse_string($xml);
> my $root = $tree->documentElement;
>
> my $name = $root->findvalue('name');
>
> print "My name is $name\n";
>
> ------
>
> I ran tester.pl on the command line. Unfortunately, it resulted into
> an error dialog box with the following message:
>
> ------
> perl.exe - Entry Point Not Found
>
> The procedure entry point xmlLoadExtDtdDefaultValue could not be
> located in the dynamic link library libxml2.dll.
>
> [ OK ]
> ------
>
> I clicked on the OK button on the error dialog box. After that, more
> error messages displayed on my command-line Console:
>
>
> ------
> Can't load 'C:/usr/site/lib/auto/Embperl/Embperl.NoApache.dll' for
> module Embperl:
> load_file:The specified procedure could not be found at
> C:/usr/lib/DynaLoader.pm line 229.
>  at tester.pl line 4
> Compilation failed in require at tester.pl line 4.
> BEGIN failed--compilation aborted at tester.pl line 4.
> ------
>
>
> Next, I edited tester.pl and commented out the "use Embperl" line, so
> the entire script code looked like this:
>
> -------
> #!/usr/bin/perl
>
> use XML::LibXML;
> # use Embperl;
>
> use strict;
> use warnings;
>
> my $xml = '<root><name>Perry</name></root>';
> my $parser = XML::LibXML->new;
> my $tree = $parser->parse_string($xml);
> my $root = $tree->documentElement;
>
> my $name = $root->findvalue('name');
>
> print "My name is $name\n";
>
> ------
>
> I ran tester.pl again, and it ran *successfully*. The output on the
> command line is, "My name is Perry". This indicated that there's
> really nothing wrong with my XML::LibXML module.
>
> Did I miss something? What seems to be the problem?

I'm not sure what the problem is here - it may be that the
libxml2.dll that you're using is incompatible somehow with
that used to compile Embperl. Did you get the XML::LibXML
from our (theoryx5.uwinnipeg.ca) repository? The libxml2.dll
used is under http://theoryx5.uwinnipeg.ca/ppms/scripts/ -
you might try using that if you're not already.

-- 
best regards,
randy kobes

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to