My Oracle Support Banner

'/usr/bin/ld: cannot find -ljava' occurs while applying one off patch (Doc ID 418557.1)

Last updated on FEBRUARY 21, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.2 and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Linux x86-64
Oracle Solaris on SPARC (64-bit)



Symptoms

While applying a one off patch following error may occur during the relinking phase:

Running make for target libnmemso
Make failed to invoke "/usr/bin/make -f ins_sysman.mk libnmemso
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1"....

/usr/bin/ld: cannot find -ljava
collect2: ld returned 1 exit status
make[1]: *** [/u01/app/oracle/product/10.2.0/db_1/sysman/lib/libnmemso.so] Error 1
make: *** [libnmemso] Error 2

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.