Centos 7.5 上Oracle 11.2.0.4.0 安装软件报错: Error in invoking target ‘agent nmhs‘ of makefile以及OEM warning

1.在centos7.5上安装Oracle 11.2.0.4.0时报错如下:
Centos 7.5 上Oracle 11.2.0.4.0 安装软件报错: Error in invoking target ‘agent nmhs‘ of makefile以及OEM warning

2.解决办法:
上面有可能是缺少compat-libstdc、compat-libcap1的安装包(centos 7上iso缺少此包),也可能是bug在安装出现问题时,修改:$ORACLE_HOME/sysman/lib/ins_emagent.mk文件:
(1)先安装好缺少的安装包:compat-libstdc、compat-libcap1
(2)vi ins_emagent.mk 调整 $(MK_EMAGENT_NMECTL)行为:$(MK_EMAGENT_NMECTL) -lnnz11 再点retry。

3.dbca创建数据库时报错:
Centos 7.5 上Oracle 11.2.0.4.0 安装软件报错: Error in invoking target ‘agent nmhs‘ of makefile以及OEM warning
按提示解决:
(1)export ORACLE_UNQNAME=dba2
(2) /oracle/app/product/11.2.0/db_1/bin/emctl stop dbconsole
(3) /oracle/app/product/11.2.0/db_1/bin/emctl config emkey -repos -sysman_pwd < Password for SYSMAN user >  
(4) /oracle/app/product/11.2.0/db_1/bin/emctl secure dbconsole -sysman_pwd < Password for SYSMAN user >  
(5) /oracle/app/product/11.2.0/db_1/bin/emctl start dbconsole
此处密码设置为与sid相同了,根据情况输入设置密码。

4.若em还是有问题,考虑重建(建议分开,先drop再create):
Centos 7.5 上Oracle 11.2.0.4.0 安装软件报错: Error in invoking target ‘agent nmhs‘ of makefile以及OEM warning
启动OEM时,先将agent kill掉。
注:emca -deconfig dbcontrol db -repos drop;
       emca -config dbcontrol db -repos create;