2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-27 03:39:11 +00:00
xcat-dep/perl-DBD-DB2/redhat6/Build-notes
lissav c1729c06ac add Redhat 6 build and spec info
Former-commit-id: 9eed62fc8f11d929803a86a6cd48b4bee4692ef1
2010-09-20 18:15:52 +00:00

22 lines
610 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
install rpm_build
install cpan2rpm
#run cpan2rpm DBD-DB2-1.78.tar.gz --author xCAT --version 1 ( to create a SPEC)
export DB2_HOME=/opt/ibm/db2/V9.7
export DB2LIB=/opt/ibm/db2/V9.7/lib64
cd /usr/src/redhat/SPECS
Use the DBD-DB2.spec supplied in this directory
cp DBD-DB2.spec /usr/src/redhat/SPECS
rpmbuild -ba DBD-DB2.spec
This creates
/root/rpm/RPMS/ppc64/perl-DBD-DB2-1-1.ppc64.rpm
Note on Redhat 6
vi /etc/ld.so.conf
add the following line
/opt/ibm/db2/V9.7/lib64
The run ldconfig