Saturday, April 13, 2019

Oracle Database 11.2.0.4 -- Error in invoking target 'agent nmhs' of makefile

Problem

While installing Oracle Database 11.2.0.4 software on Linux x86_64 platforms, e.g. OLE7, RHEL7 and some others, you get errors similar to below:

On the installer: 

Error in invoking target 'agent nmhs' of makefile '/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk'. See '/u01/app/oraInventory/logs/installActions2019-04-13_05-44-14PM.log' for details.

The log file $ORACLE_HOME/install/make.log shows similar to:

collect2: error: ld returned 1 exit statmake[1]: Leaving directory `/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib'
us
make[1]: *** [/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/emdctl] Error 1
make: *** [emdctl] Error 2


Solution

Edit file $ORACLE_HOME/sysman/lib/ins_emagent.mk. Replace line:

$(MK_EMAGENT_NMECTL)

with:

$(MK_EMAGENT_NMECTL) -lnnz11

Then press the Retry button in the Installer to continue the installation. 


No comments: