mirror of
				https://github.com/xcat2/xcat-dep.git
				synced 2025-10-28 18:05:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			610 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			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
 |