mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-11-21 09:01:46 +00:00
add speck and notes for DB2 lite client
Former-commit-id: ee3965f97b4d5b2a44a16fde8623e99c64c414c1
This commit is contained in:
parent
5e6c0c948b
commit
ca67078e7a
@ -1,22 +1,27 @@
|
||||
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 DB2LIB=/db2client/dsdriver/odbc_cli_driver/aix32/clidriver/lib
|
||||
cd /usr/src/redhat/SPECS
|
||||
#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 /usr/src/redhat/SPECS
|
||||
rpmbuild -ba DBD-DB2.spec
|
||||
cp DBD-DB2Lite.spec /root/rpmbuild/SPECS
|
||||
rpmbuild -ba DBD-DB2Lite.spec
|
||||
This creates
|
||||
/root/rpm/RPMS/ppc64/perl-DBD-DB2Lite-1-1.ppc64.rpm
|
||||
/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/odbc_cli_driver/aix32/clidriver/lib
|
||||
/db2client/dsdriver/lib
|
||||
|
||||
The run ldconfig
|
||||
|
@ -43,7 +43,7 @@ grep -rsl '^#!.*perl' . |
|
||||
grep -v '.bak$' |xargs --no-run-if-empty \
|
||||
%__perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)'
|
||||
CFLAGS="$RPM_OPT_FLAGS"
|
||||
DB2_HOME=/db2client/dsdriver/odbc_cli_driver/aix32/clidriver DB2LIB=/db2client/dsdriver/odbc_cli_driver/aix32/clidriver/lib %{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '`
|
||||
DB2_HOME=/db2client/dsdriver DB2LIB=/db2client/dsdriver/lib %{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '`
|
||||
%{__make}
|
||||
%if %maketest
|
||||
%{__make} test
|
||||
|
Loading…
Reference in New Issue
Block a user