Error in invoking target ‘client_sharedlib’ of makefile ‘/u01/app/oracle/product/12.1.0/dbhome_3/rdbms/lib/ins_rdbms.mk’

Error in invoking target ‘client_sharedlib’ of makefile ‘/u01/app/oracle/product/12.1.0/dbhome_3/rdbms/lib/ins_rdbms.mk’

Error:

Diagnosis:

Installation logs point to missing library in the make file ins_rdbms.mk for 12c and the platform is too advanced (Oracle linux 8.2). Even CV_ASSUME_DISTID=OEL7.x did not help. There are also other reason’s for this error to happen. If there is mismatch between 32 bit and 64 bit as per database software and platform, then this error may occur.

INFO: /u01/app/oracle/product/12.1.0/dbhome_3/bin/orald: line 31: exec: gcc: not found

INFO: genclntsh: Failed to link libclntshcore.so.12.1 <===
make: *** [/u01/app/oracle/product/12.1.0/dbhome_3/rdbms/lib/ins_rdbms.mk:56: client_sharedlib] Error 127

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'client_sharedlib' of makefile '/u01/app/oracle/product/12.1.0/dbhome_3/rdbms/lib/ins_rdbms.mk'. See '/u01/app/oraInventory/logs/installActions2022-10-11_10-48-49PM.log' for details.
Exception Severity: 1

Make file log further pointed to missing gcc packages as per OEL 8.2

/usr/bin/make -f ins_rdbms.mk client_sharedlib ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_3//u01/app/oracle/product/12.1.0/dbhome_3/bin/genclntsh
/u01/app/oracle/product/12.1.0/dbhome_3/bin/orald: line 31: exec: gcc: not found
genclntsh: Failed to link libclntshcore.so.12.1
make: *** [/u01/app/oracle/product/12.1.0/dbhome_3/rdbms/lib/ins_rdbms.mk:56: client_sharedlib] Error 127

Solution:

Update or install all the gcc required for the library to be in place

[root@hydrupgrd app]# yum install gcc* -y

Installation is success

Leave a Reply

%d bloggers like this: