【发布时间】:2013-03-20 15:08:56
【问题描述】:
我在 Windows 7 上使用 xampp 1.8.1 并希望将其用于 perl,但是当我执行最简单的 hello world perl 脚本时,它给我一个错误 500。有人知道我做错了什么吗?这是我的“hello world”脚本:
#!/usr/bin/perl
print "Hello World.\n";
提前致谢,
【问题讨论】:
-
您的目录和该文件是否具有所有正确的文件模式?您的 URL 中的该文件的路径是否正确?可能需要更多信息才能有所帮助...
-
[2013 年 3 月 20 日星期三 16:17:22.205165] [win32:error] [pid 5420:tid 1656] [client ::1:52122] AH02102: C:/xampp/htdocs/test. pl 不可执行;确保解释的脚本有“#!”或者 ”'!”第一行 [Wed Mar 20 16:17:22.205165 2013] [cgi:error] [pid 5420:tid 1656] (9)Bad file descriptor: [client ::1:52122] AH01222: don't know how to spawn child进程:C:/xampp/htdocs/test.pl
-
这是我的 apache 服务器上的 error.log 文件所说的
-
嗯,
C:/...表示 windows,但您的#!/usr/bin/perl表示 unix... 它是哪个? -
我在 windows 上的 xampp apache 服务器上运行它
标签: perl xampp mod-perl httpexception