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

Last updated on AUGUST 26, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.2 and later
Linux x86
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

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms