Error in invoking target agent nmhs of makerfile ins_emagent.mk
Error in invoking target agent nmhs of makerfile ins_emagent.mk
APPLIES TO
Operating System - Red Hat Enterprise Linux Server 7.9
Oracle Database - Enterprise Edition - version 11.2.0.4
Oracle Grid Infrastructure - version 11.2.0.4
SYMPTOMS
During runInstaller(OUI), popup make error in invoking target 'agent nmhs', found errors in install log /u01/app/oraInventory/logs/installActions2023-08-07_01-52-08PM.log

INFO: make[1]: *** [/u01/app/oracle/product/11.2.0.4/db_1/sysman/lib/emdctl] Error 1 |
CAUSE
Unpublished bug 19692824.
During installation of Oracle Database or Oracle RAC on OL7, the following linking error may be encountered:
Error in invoking target 'agent nmhs' of makefile '<ORACLE_HOME>/sysman/lib/ins_emagent.mk'. See 'installActions.log' for details.
If this error is encountered, the user should select Continue. Then, after the installation has completed, the user must download Patch 19692824 from My Oracle Support and apply it per the instructions included in the patch README
SOLUTION 1
Ignore this error, continue install.
After the install has finished, apply the patch p19692824_112040_Linux-x86-64.zip.
SOLUTION 2
Make a copy of ins_emagent.mk file.
cp -a $ORACLE_HOME/sysman/lib/ins_emagent.mk $ORACLE_HOME/sysman/lib/ins_emagent.mk.bak |
Search below in $ORACLE_HOME/sysman/lib/ins_emagent.mk
#=========================== |
Then append the line with -lnnz11
#=========================== |
Use following command to modify.
sed -i 's|$(MK_EMAGENT_NMECTL)|$(MK_EMAGENT_NMECTL) -lnnz11|' $ORACLE_HOME/sysman/lib/ins_emagent.mk |
Relink oracle binaries.
$ORACLE_HOME/bin/relink all |
Verify.
ls -l $ORACLE_HOME/bin/emdctl |





