标题: Perl的NT安装实验报告
问天
元帅
Rank: 1


元帅勋章 终身成就勋章
UID 11493
精华 187
积分 34200
帖子 33353
威望 91
金币 13148
热心 2617
阅读权限 100
注册 2006-4-7
状态 离线
Perl的NT安装实验报告

首先, 是下载安装程序.     
我是在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里也可以看了


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

网友 问天 签名 - 网友社区 请您回个帖。谢谢
PR查询 免费域名 免费空间
顶部
[广告] 免费域名(Free Subdomain) 免费空间(Free hosting) PR查询(Google Pagerank)



当前时区 GMT+8, 现在时间是 2008-10-8 18:49
信产部ICP备案:京ICP备05066424号 北京市公安局网监备案:1101050648号

Powered by Discuz! 5.5.0
清除 Cookies - 联系我们 - 网友俱乐部 - Archiver - WAP