Software⏱️ 3 min read📅 2026-06-15

How to Fix: Linker error while installing Oracle 11g on Fedora 18

Installing Oracle 11g on Fedora 18 results in a linker error. Learn how to fix the issue.

Quick Answer: Add the path to libnnz11.so to the linker command line to resolve the undefined reference error.

A linker error occurs while installing Oracle 11g on Fedora 18, which affects users who are setting up database programming against Oracle DB using C/C++ on Linux. This issue can be frustrating as it prevents the installation process from completing successfully.

The linker error is caused by an undefined reference to a symbol 'B_DestroyKeyObject' in the libnmectl.a file. This error can be resolved by adding the necessary library to the linker command line or by updating the system libraries.

🔍 Why This Happens

  • The first main reason for this error is that the Fedora 18 system lacks the necessary libraries required for Oracle DB installation. Specifically, the libnnz11.so library is missing, which contains the definition of the 'B_DestroyKeyObject' symbol.
  • An alternative reason for this error could be that the system's ld configuration is not set correctly, leading to the ignoring of the -z lazyload and -z nolazyload options. This can result in the undefined reference to 'B_DestroyKeyObject'.

🛠️ Step-by-Step Verified Fixes

Resolving the issue by updating the system libraries

  1. Step 1: Update the Fedora 18 system to ensure that all necessary libraries are installed and up-to-date.
  2. Step 2: Run the command `sudo yum update -y` to update the system packages. Then, run `sudo yum install -y oracle-rdbms-server-11g-x86_64-postinstall` to install any additional required libraries.

Resolving the issue by adding the necessary library to the linker command line

  1. Step 1: Add the libnnz11.so library to the linker command line using the `-L` and `-R` options. For example, run `./runInstall -L/u01/app/oracle/product/11.2.0/db_1/lib -R `/u01/app/oracle/product/11.2.0/db_1/lib`.

💡 Conclusion

To successfully install Oracle 11g on Fedora 18, it is essential to resolve the linker error by updating the system libraries or adding the necessary library to the linker command line. By following these steps, users can overcome this issue and complete the installation process.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions