My Oracle Support Banner

Linux: OPatch Issue:Re-link fails with: gcc: command not found (Doc ID 1587580.1)

Last updated on OCTOBER 09, 2020

Applies to:

Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Generic Linux

Symptoms

On 11.2 when applying a PSU to Grid Infrastructure Homes, the relink phase can generate the following issue

Restoring "<GI_HOME>" to the state prior to running NApply...
Checking if OPatch needs to invoke 'make' to restore some binaries...
Make failed to invoke "/usr/bin/make -f ins_srvm.mk install_srvm ORACLE_HOME=<GI_HOME>"....'ins_srvm.mk:68: warning: overriding commands for target 'libsrvm11.so'
ins_srvm.mk:31: warning: ignoring old commands for target 'libsrvm11.so'
ins_srvm.mk:71: warning: overriding commands for target 'libsrvmocr11.so'
ins_srvm.mk:34: warning: ignoring old commands for target 'libsrvmocr11.so'
ins_srvm.mk:74: warning: overriding commands for target 'libsrvmhas11.so'
ins_srvm.mk:37: warning: ignoring old commands for target 'libsrvmhas11.so'
<GI_HOME>/bin/echodo: line 10: /usr/bin/gcc: No such file or directory
mv: cannot stat 'libsrvm11.so': No such file or directory
make: [isrvm] Error 1 (ignored)
/bin/sh: gcc: command not found
make: *** [osdbagrp] Error 127
'

--------------------------------------------------------------------------------
Failed to run make commands. They are stored in file '<GI_HOME>/.patch_storage/NApply/2013-09-25_16-23-53PM/make.txt'
Invoke these commands manually to restore the binaries in the Oracle Home.
OPatch failed to restore OH '<GI_HOME>'. Consult OPatch document to restore the home manually before proceeding.

NApply was not able to restore the home. Please invoke the following scripts:
- restore.[sh,bat]
- make.txt (Unix only)
to restore the ORACLE_HOME. They are located under
"<GI_HOME>/.patch_storage/NApply/2013-09-25_16-23-53PM"

UtilSession failed: Re-link fails on target "install_srvm".

Log file location: <GI_HOME>/cfgtoollogs/opatch/opatch2013-09-25_16-23-53PM_1.log

OPatch failed with error code 73

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.