2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-22 17:41:51 +00:00
xcat-dep/perl-DBD-DB2/redhat6/Build-notes.lite
lissav ca67078e7a add speck and notes for DB2 lite client
Former-commit-id: ee3965f97b4d5b2a44a16fde8623e99c64c414c1
2012-03-12 19:16:19 +00:00

28 lines
895 B
Plaintext

Build Notes for the perl-DBD-DB2 on RedHat6.x p-Series
DB2 must be installed on the linux machine to build the DBD
Download DBD-DB2-1.83.tar.gz from CPAN
cp into /root/rpmbuild/SOURCES
install rpm_build
install v9.7fp5_linuxppc64_dsdriver.tar.gz
Setup per instructions in DB2 doc.
Build with DBD-DB2-1.83.tar.gz from cpan. Must be this level or later
#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
Use the DBD-DB2Lite.spec supplied in this directory
cp DBD-DB2Lite.spec /root/rpmbuild/SPECS
rpmbuild -ba DBD-DB2Lite.spec
This creates
/root/rpmbuild/RPMS/ppc64/perl-DBD-DB2Lite-1-1.ppc64.rpm
Note on Redhat 6
vi /etc/ld.so.conf
add the following line
/db2client/dsdriver/lib
The run ldconfig