将ios文件上传到操作系统中或通过光驱进行挂载
[root@db2v11 yum.repos.d]#mount /dev/cdrom /mnt
[root@db2v11 yum.repos.d]#cd /etc/yum.repos.d/
[root@db2v11 yum.repos.d]#cat > local.repo << EOF
[local-media]
name=rhel7-local
baseurl=file:///mnt
gpgcheck=0
enabled=1
EOF
[root@db2v11 yum.repos.d]#yum list
[root@db2v11 soft]# mount -t iso9660 rhel-server-7.4-x86_64-dvd.iso /mnt2
[root@db2v11 yum.repos.d]#cd /etc/yum.repos.d/
[root@db2v11 yum.repos.d]#cat > local.repo << EOF
[local-media]
name=rhel7-local
baseurl=file:///mnt
gpgcheck=0
enabled=1
EOF
[root@db2v11 soft]# tar -zxf v11.1.4fp4_linuxx64_server_t.tar.gz
[root@db2v11 server_t]# ./db2prereqcheck -l -s
prereqSAM: Error: Prerequisite checking for the ITSAMP installation failed: RHEL 7.4 x86_64
prereqSAM: One or more required packages are not installed: ksh, perl, perl-Sys-Syslog
prereqSAM: For details, refer to the 'Error:' entries in the log file: /tmp/prereqSAM.2.log
Requirement not matched for DB2 database "Server" . Version: "11.1.4.4". Summary of prerequisites that are not met on the current sys
tem: DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "/lib/libpam.so*".
DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "libstdc++.so.6".
Requirement not matched for DB2 database "Server" with pureScale feature . Version: "11.1.4.4". Summary of prerequisites that are not
met on the current system: DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "/lib/libpam.so*".
DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "libstdc++.so.6".
DBT3507E The db2prereqcheck utility failed to find the following package or file: "sg_persist".
DBT3507E The db2prereqcheck utility failed to find the following package or file: "sg3_utils".
DBT3613E The db2prereqcheck utility failed to verify the prerequisites for TSA. Ensure your machine meets all the TSA installation p
rerequisites.
One of ntp or chrony is required to be on the system.
Required minimum version for "ntpd": "4.2.6p5"
Actual version is undetermined
Required minimum version for "chronyd": "2.2.1"
Actual version is undetermined
Required minimum version for "ksh": "20100621"
Actual version is undetermined
DBT3507E The db2prereqcheck utility failed to find the following package or file: "kernel-devel".
DBT3507E The db2prereqcheck utility failed to find the following package or file: "gcc-c++".
DBT3507E The db2prereqcheck utility failed to find the following package or file: "cpp".
DBT3507E The db2prereqcheck utility failed to find the following package or file: "gcc".
[root@db2v11 server_t]# yum -y install sg_persist sg3_utils kernel-devel cpp gcc gcc-c++ libstdci686 pami686
[root@db2v11 server_t]# ./db2prereqcheck -l -s
[root@db2v11 server_t]# yum -y install ksh ntp chrony
[root@db2v11 server_t]# ./db2prereqcheck -l -s
prereqSAM: Error: Prerequisite checking for the ITSAMP installation failed: RHEL 7.4 x86_64
prereqSAM: One or more required packages are not installed: perl-Sys-Syslog
prereqSAM: For details, refer to the 'Error:' entries in the log file: /tmp/prereqSAM.5.log
DBT3533I The db2prereqcheck utility has confirmed that all installation prerequisites were met. Requirement not matched for DB2 data
base "Server" with pureScale feature . Version: "11.1.4.4". Summary of prerequisites that are not met on the current system: DBT3613E The db2prereqcheck utility failed to verify the prerequisites for TSA. Ensure your machine meets all the TSA installation prerequisites.
[root@db2v11 server_t]# yum -y install perl-Sys-Syslog
[root@db2v11 server_t]# ./db2prereqcheck -l -s
prereqSAM: All prerequisites for the ITSAMP installation are met on operating system:
Red Hat Enterprise Linux Server release 7.4 (Maipo)
DBT3533I The db2prereqcheck utility has confirmed that all installation prerequisites were met. DBT3533I The db2prereqcheck utility
has confirmed that all installation prerequisites were met.
[root@db2v11 server_t]# yum -y install xorg-x11-apps
[root@db2v11 server_t]# export DISPLAY=192.168.184.1:0.0
[root@db2v11 server_t]# ./db2setup
执行报错:
[root@db2v11 server_t]# ./db2setup
DBI1190I db2setup is preparing the DB2 Setup wizard which will guide
you through the program setup process. Please wait.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /root/db2.tmp.24261/db2/linuxamd64/java/jre/lib/amd64/libawt_xawt.so (libX
tst.so.6: cannot open shared object file: No such file or directory) at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1428)
at java.lang.System.load(System.java:556)
at java.lang.ClassLoader.loadLibraryWithPath(Native Method)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1420)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:1393)
at java.lang.System.loadLibrary(System.java:569)
at java.awt.Toolkit$3.run(Toolkit.java:1647)
at java.awt.Toolkit$3.run(Toolkit.java:1645)
at java.security.AccessController.doPrivileged(AccessController.java:640)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1644)
at java.awt.Toolkit.<clinit>(Toolkit.java:1681)
at java.awt.Component.<clinit>(Component.java:604)
解决:
[root@db2v11 server_t]# yum install libXtst.i686 -y
[root@db2v11 server_t]# yum install libXtst* -y
如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!
赞4
添加新评论1 条评论
2019-01-28 19:12