动网论坛,站长建站首选,国内使用量最多的论坛软件 动网论坛官方技术讨论区 站长工具 申请属于您自己的免费论坛
首页 | 新闻资讯 | 网站运营 | 网络编程 | 数据库 | 服务器 | 网页设计 | 图像媒体 | 网络应用 | 搜索优化 | 资源下载 | 动网主机 | DVBOX
    本站内  互联网 ASP论坛  ASP.Net论坛  PHP论坛
  
   Cgi/Perl → 阅读文章

 Perl的NT安装实验报告

作者来源: 
阅读 1209 人次 , 2006-3-29 4:02:00 


首先, 是下载安装程序.

我是在http://www.activestate.com/overview.htm进行下载.

包括3块:
perl for win32 build 316
perl for isapi build 316(如果要写cgi)
perlscript build 316(如果要写asp)

文件都不大, 别搞错了运行平台就行了

接下来先安装 perl for win32
下载的pw32i316是自解压文件, 解开后会自动执行一个批处理文件进行安装.

安装的界面是个命令行的交互程序, 全文记录如下...

this install script assumes that you have unpacked
perl for win32 into the final intended destination
directory.
do you wish to proceed? [y/n]
y
perldir = c:perl
wed jul 22 15:08:04 1998
installing perl for win32 into c:perl
added key to hkey_local_machinesoftwareactivewareperl5 ..
adding c:perlbin to script path information
adding c:perllib to library include path information
modify search path? [y/n]y
retrieving path information from session manager
updated path information in session manager
associate .pl with perl.exe? [y/n]
associating .pl extension with perl.exe.
.pl=perl
perl=c:perlbinperl.exe %1 %*

if foo.pl is in the path, typing foo.pl at any command prompt will run it.

add registry key to support standard i/o redirection in iis? [y/n]
added createprocesswithnewconsole value for iis
perl 5.003 installation finished.
note: the updated path information will not take effect
until you log off and back on again. enjoy ;-)

: 弹出一个notepad窗口让你观看release.txt,看完后关闭这个窗口

按任意键继续...

perl安装后目录结构如下:

perl
+----bin 可执行文件 *.exe *.bat
|
+----docs 文档(html格式)
|
+----eg 例子
|
+----lib 库文件

docs是一定要看的, eg是开卷有益的, lib就先看看好了,不要乱动

接下来装个isapi扩展, 弄弄cgi

plisi316.exe 也是个自解压文件, 运行后自动执行一批处理文件过程记录如下:

installing perlis
请按任意键继续 . . .
***** wed jul 22 16:00:58 1998
installing perlis into c:perlbin
please choose a file extension to associate with perlis.dll.
extension:
-->association made with .pl

perlis installed.
opening release.txt...
: 看完 release.txt 后
请按任意键继续 . . .
: 完成了

我的机器上装的是iis 4.0, 配置*.pl为cgi程序的操作如下:
打开要配置的站点(site)或目录(virtual directory)的属性对话框
在 home/virtual directory 板里选 application settings 的 configuration...
在 app mappings 里用 add 加入对 .pl 文件的解释器, executable 选
刚才安装在 c:perlbin 里的 perlis.dll
由于不是asp解释器, 所以不用 script engine 选项

that should be ok.

在刚才的hw.pl 头上加一行
print "content-type: text/htmlnn";

用浏览器试试看吧...我是一次成功的

接下来装个perl script, 弄弄asp

plsei316.exe 也是个自解压文件, 运行后自动执行一批处理文件
过程记录如下:

installing perlscript
请按任意键继续 . . .
***** wed jul 22 16:32:15 1998
installing perlscript into c:perlbin
perlscript installed successfully
opening release.txt...
请按任意键继续 . . .

安装完成后 c:perlbin 下多了一个 perlse.dll
另外有两个目录 aspsamples 和 ie3samples 在 c:perl 下

ie3samples里的是在页面里用perl script的例子,马上就可以看了
aspsamples 里的是在asp里用perl script的例子,先加到iis里也可以看了

这这这...是不是有点太简单了?

 
 收藏本文  打印本文  论坛讨论  关闭窗口
· 上一篇:cgi程序的绝对路径和相对路径
· 下一篇:CGI测试
· perl文件上传程序,支持多文件,2进制
· Perl教学 第二篇 简单变量
· perl实例分析教程之十一
· 设置Web Server以运行CGI
· 给 perl hacker 们看的(1)


关于本站 | 联系我们 | 业务合作 | 客户案例 | 诚聘英才 | 广告合作 | 收藏本站
海口动网先锋网络科技有限公司版权所有
Copyright © 2000 - 2006 Cndw.Com
中华人民共和国电信与信息服务业务经营许可证编号 琼 ICP 020077