運行pl程序,提示:Can't locate DBI.pm in @INC,解決方法如下:

Install cygwin with these options:
- gcc (devel)
- make (devel)
- binutils (devel)
- Perl 5.8.6 (interpreters)
- Perl win32 API (libs)
- PostgreSQL (database)

installing DBI-1.48.tar.gz as follows:
- Unpack the kit into /usr/src (c:\cygwin\usr\src)
- Open a cygwin shell and cd to /usr/src/DBI-1.48
- perl Makefile.PL
- make
- make test
- make install

在cygwin的shell下執行相應pl文件,比如./ora_DBMS_exp.pl
(注:在cmd下執行pl依然提示Can't locate DBI.pm in @INC......)