Linux – Installation of Oracle 11gR2 in Oracle Linux 7

installationlinuxoracle

Installation of Oracle 11gR2 is failed with below error, on Oracle Linux 7 OS.

> INFO: Building Client Shared Libraries INFO: Building Client Shared
> Libraries INFO: The output of this make operation is also available
> at: '/u01/app/oracle/product/11.2.0.4/db_1/install/make.log' INFO: 
> 
> INFO: Start output from spawned process: INFO:
> ---------------------------------- INFO: 
> 
> INFO: /u01/app/oracle/product/11.2.0.4/db_1/bin/genclntsh
> 
> INFO: /bin/ld: cannot find -lstdc++_nonshared
> 
> INFO: collect2: error: ld returned 1 exit status
> 
> INFO: genclntsh: Failed to link libclntsh.so.11.1
> 
> INFO: make: *** [client_sharedlib] Error 1
> 
> 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/11.2.0.4/db_1/rdbms/lib/ins_rdbms.mk'. See
> '/u01/app/oraInventory/logs/installActions2017-11-09_12-52-50AM.log'
> for details. Exception Severity: 1

Let me know that i need to try reinstall it or any work around can be done.

Best Answer

This is caused by the missing libstdc++ package.

Linking using g++ fails searching for -lstdc++

In your previous question, on your screenshot, you have multiple missing packages, including libstdc++.