Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

How to Resolve Error in invoking target ‘agent_nmhs’ of makefile ins_emagent.mk

$
0
0

ins_emagent.mk

During the installation of Oracle 11.2.0.4 on RHEL 7, I faced this error about ins_emagent.mk below:

error in invoking target 'agent nmhs' of make file ins_emagent.mk


In the installation log, we saw a piece of message:
[oracle@test ~]$ vi /u01/app/oraInventory/logs/installActions2016-10-21_05-03-41PM.log
...
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: 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/installActions2016-10-21_05-03-41PM.log' for details.
Exception Severity: 1
...


Don’t click Abort or Continue, you may find a solution in this post.

By following the error message, you can find the target file that caused this error:
 
[oracle@test ~]$ ls -l $ORACLE_HOME/sysman/lib/ins_emagent.mk
-rw-r--r--. 1 oracle oinstall 5480 Jul 16  2013 /u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk


Solution

Now, please edit the file, it’s around line #176, you should add an option -lnnz11 to this command:
$(MK_EMAGENT_NMECTL) -lnnz11
[oracle@test ~]$ vi /u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk
...
    176         #$(MK_EMAGENT_NMECTL)
    177         $(MK_EMAGENT_NMECTL) -lnnz11

 

In the above, I commented out the original line 176 and add a line underneath. Just like I said, I added an option to it. After that, you can save the file, and then click Retry, it will solve the problem this time.

Viewing all articles
Browse latest Browse all 1640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>