先程、モジュールが組み込まれているかどうかuseで宣言してプログラムを走らせたところ、XMLパーサは大丈夫でしたがDBIが入ってなかったためインストールすることになりました。さて、どうやって手に入れるのか検索したら、ActivePerlの場合はppmコマンドを使ってネットからライブラリをダウンロードして組み込むことが出来るらしい。
早速、コマンドプロンプトを立ち上げてppmと打ってみると以下のようにPPMが起動した。
PPM - Programmer's Package Manager version 3.2.
Copyright (c) 2001 ActiveState Corp. All Rights Reserved.
ActiveState is a division of Sophos.
Entering interactive shell. Using Term::ReadLine::Perl as readline library.
Type 'help' to get started.
ppm>
ここで表示されているppmプロンプトに「install DBI」と打てばDBIのインストールが始まる。
ppm> install DBI
====================
Install 'DBI' version 1.48 in ActivePerl 5.8.7.813.
====================
Downloaded 548475 bytes.
Extracting 73/73: blib/arch/auto/DBI/Driver_xst.h
Installing C:\Perl\site\lib\auto\DBI\dbd_xsh.h
Installing C:\Perl\site\lib\auto\DBI\DBI.bs
Installing C:\Perl\site\lib\auto\DBI\DBI.dll
(中略)
Installing C:\Perl\bin\dbiproxy
Installing C:\Perl\bin\dbiproxy.bat
Successfully installed DBI version 1.48 in ActivePerl 5.8.7.813.
インストールが完了したらppmから抜け出して早速Perlプログラミング開始
ppm> q
インストールログは続きに全文掲載。