Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1563768
  • 博文数量: 289
  • 博客积分: 11086
  • 博客等级: 上将
  • 技术积分: 3291
  • 用 户 组: 普通用户
  • 注册时间: 2006-06-22 17:06
个人简介

徐小玉的博客。

文章分类

全部博文(289)

文章存档

2023年(6)

2022年(1)

2021年(2)

2020年(9)

2019年(9)

2018年(6)

2017年(10)

2016年(10)

2014年(3)

2013年(4)

2011年(12)

2010年(16)

2009年(14)

2008年(119)

2007年(48)

2006年(20)

我的朋友

分类:

2008-03-12 17:02:46

Compiling the DBD :: DB2 module on Linux or UNIX

To build and install the DBD::DB2 module, you need the following:

  • Perl 5.005_03 or later
  • DB2 Application Development Client
  • A supported C compiler as documented under 'Supported operating systems' on the Application development Web page.

  1. Set the DB2_HOME environment variable to the location of your DB2 instance. For example:bash# export DB2_HOME=/home/db2inst1/sqllib
  2. Install the DBI module:bash# perl -MCPAN -e 'install DBI'
  3. Install the DBD::DB2 module:bash# perl -MCPAN -e 'install DBD::DB2'


Installing DBD::DB2 with ActivePerl on Windows

If you are using the Perl distribution on Windows, you can install a binary version of the DBI and DBD::DB2 modules.

Prerequisites:

  • ActivePerl 5.8 or later
  • DB2 client, Version 8.1 or later

For example, if you have ActivePerl 5.8.7 installed, you can install the DBD::DB2 modules as follows:

  • Install the DBI module by issuing the following command (the DBI module is a prerequisite for the DBD::DB2 module): ppm install DBI
  • Install the DBD::DB2 module by issuing the following command: ppm install
  • To uninstall the DBD-DB2 module, issue: ppm uninstall DBD-DB2

When the DBD::DB2 module is successfully installed, you can access documentation and a sample application by issuing the following command:

 

 

 

阅读(1857) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~