top
Loading...
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里也可以看了


這這這...是不是有點太簡單了? 
北斗有巢氏 有巢氏北斗