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

Last updated on SEPTEMBER 27, 2013

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 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 "/u01/app/11.2.0/grid" 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=/u01/app/11.2.0/grid"....'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'
 /u01/app/11.2.0/grid/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 '/u01/app/11.2.0/grid/.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 '/u01/app/11.2.0/grid'. 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
 "/u01/app/11.2.0/grid/.patch_storage/NApply/2013-09-25_16-23-53PM"
 
 UtilSession failed: Re-link fails on target "install_srvm".
 
 Log file location: /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2013-09-25_16-23-53PM_1.log
 
 OPatch failed with error code 73

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms