Hi,
 
had problems with one of the example modules. XML::Parser::Expat was needed, but I got only version 2.27 of expat.dll . The version on cpan has no dll. only the pm files, they are version 2.30, but dom.pm, another module, which requires XML::Parser, requires at least version 2.28.  So I had to reduce the requirement in dom.pm to 2.27 and set parser.pm and expat.pm to 2.27 to match each other and the old expat.dll which was already on my system, don't know, maybe it has been installed with activeperl. of course, I could also change the number in expat.dll to 2.30 with a hex editor, but I rather would like to have the real 2.30 version. I am on windows and somehow can't find out how to compile. If somebody got this dll file with version 2.30 to match the corresponding pm files I have, please email me it.
 
Also, maybe you know how to make apache asp and halcyonsoft asp work together on the same server? poor apache gets confused, and everytime I start a vbscript, the apache asp module kicks in. i use ifdefine tags in httpd.conf to start only one of the modules, but I'd rather start both modules at the same time, otherwise I have to restart the server to test the respective other scripts. Maybe through a .htaccess file? I put the halcyonsoft asp directives from httpd.conf to a htaccess file, but the apache asp module still kicked in; or by renaming apache asp scripts extension to something else?
 
Another small problem is that the tmp directory, which is needed for some of the example scripts, is not created properly. First of all, it is created ONLY by the bookmarks example (and I think also the search engine example). As soon as it is created, all other scripts work, but before none of the other scripts creates this directory. Also, the first time I start the bookmarks script (i.e., the time when the tmp directory is created), I get an error. When i refresh the browser, everything is normal, because the tmp directory has been already created. I post the errors below. Not so important, since it works fine, when the tmp directory is created, but still...:
 
 
 
Errors Output
errors compiling global.asa: DBD::CSV::db do failed: Cannot open C:\Programme\Server\Apache\public\ApacheASP\tmp\bookmarks for writing: No such file or directory at C:/Programme/Server/Perl/lib/DBD/File.pm line 466. DBD::File::Statement::open_table('DBD::CSV::Statement=HASH(0x2167e00)', 'DBI::st=HASH(0x205c768)', 'bookmarks', 1, 1) called at C:/Programme/Server/Perl/lib/DBD/CSV.pm line 130 DBD::CSV::Statement::open... see compile error for rest
Debug Output
errors compiling global.asa: DBD::CSV::db do failed: Cannot open C:\Programme\Server\Apache\public\ApacheASP\tmp\bookmarks for writing: No such file or directory at C:/Programme/Server/Perl/lib/DBD/File.pm line 466. DBD::File::Statement::open_table('DBD::CSV::Statement=HASH(0x2167e00)', 'DBI::st=HASH(0x205c768)', 'bookmarks', 1, 1) called at C:/Programme/Server/Perl/lib/DBD/CSV.pm line 130 DBD::CSV::Statement::open_table('DBD::CSV::Statement=HASH(0x2167e00)', 'DBI::st=HASH(0x205c768)', 'bookma ...
Compile Error
 
errors compiling global.asa: DBD::CSV::db do failed: Cannot open C:\Programme\Server\Apache\public\ApacheASP\tmp\bookmarks for writing: No such file or directory at C:/Programme/Server/Perl/lib/DBD/File.pm line 466.
 DBD::File::Statement::open_table('DBD::CSV::Statement=HASH(0x2167e00)', 'DBI::st=HASH(0x205c768)', 'bookmarks', 1, 1) called at C:/Programme/Server/Perl/lib/DBD/CSV.pm line 130
 DBD::CSV::Statement::open_table('DBD::CSV::Statement=HASH(0x2167e00)', 'DBI::st=HASH(0x205c768)', 'bookma ...
 
Compiled Data with Error
 
  -: E) || die("can't create table $DBI::errstr");
  -:   ;
  -: }
  -:
  -: $Db->do("select * from bookmarks")
  -:   || die("can't do select against bookmarks: $DBI::errstr");
  -:
  -: sub Script_OnStart {
  -:     $Basename = basename($0);
  -:     $Title = $Name.' / '.$Titles{$Basename};
  -:     $Response->Include('header.inc');
  -:     $Form = $Request->Form();
  -:     $Query = $Request->QueryString();
  -:     $Response->Expires(0);
  -:
  -:     # a user may logout from any script, destroy session, and go
  -:     # to login / intro page
  -:     if($Form->{logout}) {
  -:  $Session->Abandon();
  -:  $Response->Redirect("index.asp?abandon=".
  -:        ++$Application->{abandon});
  -:     }
  -: }
  -:
  -: sub Script_OnEnd {
  -:     $Response->Include('footer.inc');
  -: }
  -:
  -: sub Application_OnStart {
  -:     # use max_bookmark_id as a pseudo sequence
  -:     $Application->Lock();
  -:     my $sth = $Db->prepare_cached
  -:       ("select bookmark_id from bookmarks order by bookmark_id desc");
  -:     $sth->execute();
  -:     $Application->{max_bookmark_id} = $sth->fetchrow_array();
  -:     $Application->UnLock();
  -: }
  -:  ;; sub exit { $main::Response->End(); }  ;; no lib qw(c:/programme/server/apache/public/apacheasp/site/apps/bookmarks//.); ;; 1;
 
 
 
--------------------------------------------------------------------------------
An error has occured with the Apache::ASP script just run. If you are the developer working on this script, and cannot work through this problem, please try researching it at the Apache::ASP web site, specifically the FAQ section. Failing that, check out your support options, and if necessary include this debug output with any query.

Reply via email to