Perl的NT安装实验报告(转)

Perl的NT安装实验报告(转)[@more@]

包括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:Perlin 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:Perlinperl.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 Create Process With New Console 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扩展, 弄弄CGIplISi316.exe 也是个自解压文件, 运行后自动执行一批处理文件,过程记录如下:

Installing PerlIS

请按任意键继续 . . .

***** Wed Jul 22 16:00:58 1998

Installing PerlIS into C:Perlin

Please choose a file extension to associate with PerlIS.dll.

Extension:

--&gtAssociation 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:Perlin 里的 perlis.dll,由于不是ASP解释器, 所以不用 Script engine 选项.

that should be OK.

在刚才的hw.pl 头上加一行

print "content-type: text/html ";

用浏览器试试看吧...我是一次成功的.接下来装个Perl Script, 弄弄ASPplSEi316.exe 也是个自解压文件, 运行后自动执行一批处理文件,过程记录如下:

Installing PerlScript

请按任意键继续 . . .

***** Wed Jul 22 16:32:15 1998

Installing PerlScript into C:Perlin

PerlScript installed successfully

opening release.txt...

请按任意键继续 . . .

安装完成后 C:Perlin 下多了一个 PerlSE.dll

另外有两个目录 aspSamples 和 IE3Samples 在 c:perl 下

IE3Samples里的是在页面里用perl script的例子,马上就可以看了aspSamples 里的是在ASP里用perl script的例子,先加到IIS里也可以看了

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8225414/viewspace-942999/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8225414/viewspace-942999/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值