Error in invoking target ‘agent nmhs’ of make file ins_emagent.mk while installing Oracle

System Info:

Oracle Version:11gR2

OS Version:Centos 7

Problem:

While installing Oracle on Linux we may encounter this error in between installation:

Error in invoking target 'agent nmhs' of make file /app/oracle/product/11.2.0/sysman/lib/ins_emagent.mk

 

Cause:

Linking error due to “ins_emagent.mk”

 

Solution:

To fix edit the ins_emagent.mk file and change the following line in $ORACLE_HOME/sysman/lib/ins_emagent.mk

$(MK_EMAGENT_NMECTL)

to

$(MK_EMAGENT_NMECTL) -lnnz11

and press the retry button again.