» 网友学堂 » CGI教程 » Perl的NT安装实验报告
Perl的NT安装实验报告
作者:问天 发表时间:2007-2-20 11:31 阅读:364次 在百度搜索相关内容

首先, 是下载安装程序.
我是在http://www.activestate.com/overview.htm进行下载.
包括3块:
Perl for Win32 Build 316
Perl for ISAPI Build 316(如果要写CGI)
PerlScript Build 316(如果要写ASP)
文件都不大, 别搞错了运行平台就行了
[color=#FFFFFF'][/color]

接下来先安装 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,看完后关闭这个窗口
[color=#FFFFFF'][/color]

按任意键继续...
[color=#FFFFFF'][/color]

perl安装后目录结构如下:
perl
----bin 可执行文件 *.exe *.bat

----docs 文档(html格式)

----eg 例子

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

[color=#FFFFFF'][/color]

接下来装个ISAPI扩展, 弄弄CGI
plISi316.exe 也是个自解压文件, 运行后自动执行一批处理文件过程记录如下:
[color=#FFFFFF'][/color]

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 选项
[color=#FFFFFF'][/color]

that should be OK.
在刚才的hw.pl 头上加一行
print "content-type: text/htmlnn";
[color=#FFFFFF'][/color]

用浏览器试试看吧...我是一次成功的
接下来装个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...
请按任意键继续 . . .

[color=#FFFFFF'][/color]

安装完成后 C:Perlbin 下多了一个 PerlSE.dll
另外有两个目录 aspSamples 和 IE3Samples 在 c:perl 下
IE3Samples里的是在页面里用perl script的例子,马上就可以看了
aspSamples 里的是在ASP里用perl script的例子,先加到IIS里也可以看了

[color=#FFFFFF'][/color]

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

#Advertisement