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/' INFO: 
> INFO: Start output from spawned process: INFO:
> ---------------------------------- INFO: 
> INFO: /u01/app/oracle/product/
> 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/'. 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.

  • Does the /u01/app/oraInventory/logs/installActions2017-11-09_12-52-50AM.log show any hints? Most likely you are missing some dependencies. Did you install the oracle-rdbms-server-12cR1-preinstall package? This package is available for 12cR2 and 11gR2, too
    – jmk
    Nov 21, 2017 at 9:02
  • Have you carefully read and implemented the prerequisites? It seems the key line is "cannot find -lstdc++_nonshared" - have you investigated this? Nov 21, 2017 at 9:09
  • @Vérace Actually, Prerequisite check is failed, please go through this link dba.stackexchange.com/questions/189465/…
    – azardin
    Nov 21, 2017 at 9:26
  • @azardin I don't think, that Vérace meant the prerequisite check but the installation prerequisites as per documentation
    – jmk
    Nov 21, 2017 at 9:51

1 Answer 1


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++.

  • Note that you need both, 32 and 64 bit packages
    – jmk
    Nov 21, 2017 at 15:21
  • @jmk No, you do not. Starting with Oracle Database 11g Release 2 (, all the 32-bit packages, except for gcc-32bit-4.3, listed in the following table are no longer required for installing a database on Linux x86-64. Only the 64-bit packages are required. However, for any Oracle Database 11g release before, both the 32-bit and 64-bit packages listed in the following table are required.. The question is about Nov 21, 2017 at 15:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.