2012-03-12 18:35:52 +00:00
|
|
|
Build Notes for the perl-DBD-DB2 on RedHat6.x p-Series
|
|
|
|
|
|
|
|
DB2 must be installed on the linux machine to build the DBD
|
2012-03-12 19:16:19 +00:00
|
|
|
Download DBD-DB2-1.83.tar.gz from CPAN
|
|
|
|
cp into /root/rpmbuild/SOURCES
|
2012-03-12 18:35:52 +00:00
|
|
|
install rpm_build
|
2012-03-12 18:50:46 +00:00
|
|
|
install v9.7fp5_linuxppc64_dsdriver.tar.gz
|
2012-03-12 19:16:19 +00:00
|
|
|
Setup per instructions in DB2 doc.
|
2012-03-12 18:50:46 +00:00
|
|
|
Build with DBD-DB2-1.83.tar.gz from cpan. Must be this level or later
|
2012-03-12 19:16:19 +00:00
|
|
|
#export DB2_HOME=/db2client/dsdriver/odbc_cli_driver/aix32/clidriver
|
|
|
|
export DB2_HOME=/db2client/dsdriver
|
|
|
|
#export DB2LIB=/db2client/dsdriver/odbc_cli_driver/aix32/clidriver/lib
|
|
|
|
export DB2LIB=/db2client/dsdriver/lib
|
|
|
|
cd /root/rpmbuild/SPECS
|
2012-03-12 18:35:52 +00:00
|
|
|
Use the DBD-DB2Lite.spec supplied in this directory
|
2012-03-12 19:16:19 +00:00
|
|
|
cp DBD-DB2Lite.spec /root/rpmbuild/SPECS
|
|
|
|
rpmbuild -ba DBD-DB2Lite.spec
|
2012-03-12 18:35:52 +00:00
|
|
|
This creates
|
2012-03-12 19:16:19 +00:00
|
|
|
/root/rpmbuild/RPMS/ppc64/perl-DBD-DB2Lite-1-1.ppc64.rpm
|
2012-03-12 18:35:52 +00:00
|
|
|
|
2012-03-12 18:50:46 +00:00
|
|
|
|
2012-03-12 18:35:52 +00:00
|
|
|
Note on Redhat 6
|
|
|
|
vi /etc/ld.so.conf
|
|
|
|
add the following line
|
2012-03-12 19:16:19 +00:00
|
|
|
/db2client/dsdriver/lib
|
2012-03-12 18:35:52 +00:00
|
|
|
|
|
|
|
The run ldconfig
|