Home > php教程 > php手册 > body text

在Windows NT 4.0下安装ActivePerl

WBOY
Release: 2016-06-21 09:13:34
Original
1146 people have browsed it

active|perl|window

版本:1.0
作者:何志强(hhzqq@sina.com)
时间:2000.03.16

本文只讨论如何在Windows NT 4.0下安装ActivePerl。
本文使用的环境:
  Windows NT 4.0
  Option Pack 4.0
  SP5
  ActivePerl 522(APi522e.exe)
一、软件下载
    http://www.activestate.com/ActivePerl/download.htm
二、软件安装
  1、双击APi522e.exe进行安装,采用缺省配置,缺省安装到C:\Perl;
  2、打开Internet服务管理器,选择默认Web站点,查看属性,在主目录页,按配置,您就会发现在应用程序映射中多了下面两条:
       扩展名  可执行路径             排它
      .pl   C:\Perl\bin\Perl.exe %s %s   PUT,DELETE
      .plx   C:\Perl\bin\perlis.dll         PUT,DELETE
  3、我在IIS中增加了一个虚拟目录,别名为perl,实际路径为D:\HZQ\PERL,有读取、脚本、执行和目录浏览权限;
  4、我在D:\HZQ\PERL中创建了一个文件test.pl,内容如下:
      print "Perl is Ok!";
    然后我在浏览器上输入http://localhost/perl/test.pl,出现下面的错误:
      CGI 错误
      指定的 CGI 应用程序因为没有返回完整的 HTTP 标题而运行不正常。它返回的标题是:
      Perl is Ok!
    然后我把test.pl修改成:
      print "Content-Type: text/html\n\n";
      print "Perl is Ok!";
    运行成功;
  5、同样我在D:\HZQ\PERL中创建了一个文件test.plx,内容如下:
      print "Perl is Ok!";
    然后我在浏览器上输入http://localhost/perl/test.plx,浏览器弹出一个出错窗口,出错信息为:
      Internet Explorer 无法打开Internet站点
      http://localhost/perl/test.plx。
      服务器返回的信息无效或不可识别
    然后我把test.plx修改成:
      print "Content-Type: text/html\n\n";
      print "Perl is Ok!";
    运行成功;
  6、请注意.pl是以CGI方式运行,.plx是以ISAPI方式运行(效率比CGI方式高很多)。


附:
  ActivePerl Download
    http://www.activestate.com/ActivePerl/download.htm
  ActivePerl Help
    http://www.activestate.com/ActivePerl/docs/



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!