Centos6.8安装DB2报kernel-source找不到怎么解? 5C

操作系统Centos6.8版本Linux localhost.localdomain 2.6.32-696.30.1.el6.x86_64 #1 SMP Tue May 22 03:28:18 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

数据库DB2版本v11.1_linuxx64_server_t.tar.gz

执行DB2安装前检查报错:

Validating "kernel-source" ...
DBT3507E  The db2prereqcheck utility failed to find the following package or file: "kernel-source".
   ERROR : Requirement not matched.

下载内核rpm包安装:

kernel-2.6.32-696.30.1.el6.centos.plus.src.rpm

安装以后执行rpmbuild -bp --target=uname -m kernel.spec 2> prep-err.log | tee prep-out.log

然后在root用户主目录下     rpmbuild/BUILD目录中有目录kernel-2.6.32-696.30.1.el6/linux-2.6.32-696.30.1.el6.centos.plus.x86_64

内容为:

图片说明

重新执行DB2安装前检查,发现还是报错:

Validating "kernel-source" ...
DBT3507E  The db2prereqcheck utility failed to find the following package or file: "kernel-source".
   ERROR : Requirement not matched.

这个问题反复出现,不知道该怎么解决了。该从哪里入手呢?

1个回答

首先 :IBM KC - db2prereqcheck - 检查安装先决条件
如果还解决不了参考:
https://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.cmd.doc/doc/r0059710.html

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!