Windows平台安装Perl DBD-DB2模块
时间:2010-06-07 来源:zlj2208
因为工作需要,同时连接多台DB2服务器,执行相同的Sql语句。于是我和paolo一起用perl写个小工具,同时连接多个DB,执行相同SQL。
Linux 下安装perl模块很简单,Windows使用编译的方法安装perl模块就比较复杂了,在IBM的网站找了个使用PPM安装DBD-DB2的方法,可以省去不少麻烦。
1. 安装需求
ActivePerl 5.8 或更高
DB2 client, Version 8.2 或更高
2. 本次安装平台信息
系统:WindowsXP SP3
DB2:Express-C 9.5
Perl:ActiveState v5.10.1
DBD-DB2:Version 1.78
3. 安装
For Version 5.8
ppm install http://theoryx5.uwinnipeg.ca/ppms/DBD-DB2.ppd |
For Version 5.10
ppm install http://cpan.uwinnipeg.ca/PPMPackages/10xx/DBD-DB2.ppd |
4. 查看帮助
必须得说一句,想要perl db2 编程的资料,不用东找西找,安装后可以使用perldoc命令查看帮助,要啥有啥。
perldoc DBD::DB2 |
5. 卸载
ppm uninstall DBD-DB2 |
原文连接:http://www-01.ibm.com/support/docview.wss?rs=71&uid=swg21297335
顺便说一句这个网站很不错:http://cpan.uwinnipeg.ca
相关阅读 更多 +
排行榜 更多 +