linux 安裝ps需要先安裝的rpm包

flywiththewind發表於2017-08-30
安裝db2 10.5需要下面的包:
yum -y install libstdc*i686 pam*i686 gcc* kernel-devel sg3_utils* sg_persist* 


安裝9.5需要下面的包:
 yum -y install compat-libstdc*i686

在檢查過程中發現:


*********************************************************************************
[root@onekey server]# ./db2prereqcheck           
WARNING:
   The 32 bit library file libstdc++.so.5 is not found on the system. 
   32-bit applications may be affected.  
WARNING:
DBT3534W  The db2prereqcheck utility determined that ASLR is set to ON and that this could cause issues with some tools.

*********************************************************************************

解決方法:


以下列其中一種方式來響應本錯誤:

  • 透過設定以下核心引數來關閉隨機化:
    kernel.randomize_va_space=0
  • 透過發出以下命令來臨時禁用隨機化並重新啟動 DB2 例項:
    echo 0 > /proc/sys/kernel/randomize_va_space




[root@onekey server_t]# ./db2prereqcheck -v 10.5.0.8                                                  


==========================================================================


Checking prerequisites for DB2 installation. Version "10.5.0.8". Operating system "Linux" 
   
Validating "Linux distribution " ... 
   Required minimum operating system distribution: "RHEL"; Version: "5"; Service pack: "9". 
   Actual operating system distribution Version: "7"; Service pack: "3". 
   Requirement matched. 
   
Validating "kernel level " ... 
   Required minimum operating system kernel level: "2.6.16". 
   Actual operating system kernel level: "3.10.0". 
   Requirement matched. 
   
Validating "C++ Library version " ... 
   Required minimum C++ library: "libstdc++.so.6" 
   Standard C++ library is located in the following directory: "/usr/lib64/libstdc++.so.6.0.19". 
   Actual C++ library: "CXXABI_1.3.1" 
   Requirement matched. 
   


Validating "32 bit version of "libstdc++.so.6" " ... 
   Found the 32 bit "/lib/libstdc++.so.6" in the following directory "/lib". 
   Requirement matched. 
   
Validating "libaio.so version " ... 
DBT3553I  The db2prereqcheck utility successfully loaded the libaio.so.1 file. 
   Requirement matched. 
   
Validating "/lib/libpam.so*" ... 
   Requirement matched. 
DBT3533I  The db2prereqcheck utility has confirmed that all installation prerequisites were met. 


==========================================================================


Checking prerequisites for DB2 installation with the DB2 pureScale Feature.  Version: "10.5.0.8".  Operating system: "Linux". 
   
Validating "Linux distribution " ... 
   Required minimum operating system distribution: "RHEL"; Version: "5"; Service pack: "9". 
   Actual operating system distribution Version: "7"; Service pack: "3". 
   Requirement matched. 
   
Validating "kernel level " ... 
   Required minimum operating system kernel level: "2.6.16". 
   Actual operating system kernel level: "3.10.0". 
   Requirement matched. 
   
Validating "SELinux status " ... 
   SELinux is "disabled ". 
   Requirement matched. 
   
Validating "C++ Library version " ... 
   Required minimum C++ library: "libstdc++.so.6" 
   Standard C++ library is located in the following directory: "/usr/lib64/libstdc++.so.6.0.19". 
   Actual C++ library: "CXXABI_1.3.1" 
   Requirement matched. 
   


Validating "32 bit version of "libstdc++.so.6" " ... 
   Found the 32 bit "/lib/libstdc++.so.6" in the following directory "/lib". 
   Requirement matched. 
   
Validating "libc.so version " ... 
   glibc library is located in the following directory "/usr/lib64/libc-2.17.so". 
   Required minimum glibc library version: "2.4.0" 
   Actual glibc library version: "2.17.0" 
   Requirement matched. 
   
Validating "libaio.so version " ... 
DBT3553I  The db2prereqcheck utility successfully loaded the libaio.so.1 file. 
   Requirement matched. 
   
Validating "gcc" ... 
   Package (or file) found: "gcc" 
   Requirement matched. 
   
Validating "binutils" ... 
   Package (or file) found: "binutils" 
   Requirement matched. 
   
Validating "cpp" ... 
   Package (or file) found: "cpp" 
   Requirement matched. 
   
Validating "gcc-c++" ... 
   Package (or file) found: "gcc-c++" 
   Requirement matched. 
   
Validating "kernel-devel" ... 
   Package (or file) found: "kernel-devel" 
   Requirement matched. 
   
Validating "Intel TCO WatchDog Timer Driver modules" ... 
The db2prereqcheck utility found that Intel TCO WatchDog Timer Driver module "iTCO_wdt" is not loaded. 
The db2prereqcheck utility found that Intel TCO WatchDog Timer Driver module "iTCO_vendor_support" is not loaded. 
   Requirement matched. 
   
Validating "free space" ... 
The directory "/tmp" has enough space on host "onekey". 
   Requirement matched. 
   
Validating "free space" ... 
The directory "/var" has enough space on host "onekey". 
   Requirement matched. 
   
Validating "free space" ... 
The directory "/usr" has enough space on host "onekey". 
   Requirement matched. 
   
Validating "sg3_utils" ... 
   Package (or file) found: "sg3_utils" 
   Requirement matched. 
   
Validating "sg_persist" ... 
   Package (or file) found: "/usr/bin/sg_persist" 
   Requirement matched. 
   
Validating "/lib/libpam.so*" ... 
   Requirement matched. 
DBT3533I  The db2prereqcheck utility has confirmed that all installation prerequisites were met. 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26224914/viewspace-2144321/,如需轉載,請註明出處,否則將追究法律責任。

相關文章