- 论坛徽章:
- 0
|
我快要疯了。(因为perl2exe)
以下这个脚本:test.cgi
#!c:\perl\bin\perl
use CGI::Session;
use CGI;
$cgi=new CGI;
$cookie=$cgi->;cookie("CGISESSID" ||$cgi->;param('CGISESSID')||undef;
$session = new CGI::Session(undef, $cookie, {Directory=>;'c:/stmp'});
print "Content-type: text/html \n\n";
print "<Html>;<head>;</head>;<body>;abc</body>;</html>;"
不用perl2exe 编译可以正常显示abc (不用use cgi::session也正常,可我要用呀.), 用perl2exe编译后显示500错误:
Apache的logs/error.log 显示:
[Fri Apr 23 13:36:22 2004] [error] Premature end of script headers: test.exe
[Fri Apr 23 13:36:22 2004] [error]
[Fri Apr 23 13:36:22 2004] [error] PLEASE SEE THE PERL2EXE USER MANUAL UNDER "Can't locate somemodule.pm in @INC"
[Fri Apr 23 13:36:22 2004] [error] FOR AN EXPLANATION OF THE FOLLOWING MESSAGE:
[Fri Apr 23 13:36:22 2004] [error] Can't locate CGI/Session/File.pm in @INC (@INC contains: PERL2EXE_STORAGE F:\\Apache2\\cgi-bin C:\\WINNT) at (eval 4) line 3.
出错页面的浏览器上显示:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@................
_________________________________________________
Apache/2.0.49 (Win32) mod_perl/1.99_13 Perl/v5.8.3 Server at 218.193.98.36 Port 80_______________________________
求求哪位高人出手相救呀。我已经重装了mod_perl N次了. |
|