mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-11-24 10:29:53 +00:00
ca67078e7a
Former-commit-id: ee3965f97b4d5b2a44a16fde8623e99c64c414c1
28 lines
895 B
Plaintext
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
|