'/usr/bin/ld: cannot find -ljava' occurs while applying one off patch

(Doc ID 418557.1)

Last updated on NOVEMBER 10, 2017

Applies to:

Oracle Database - Enterprise Edition - Version and later
Linux x86-64
Oracle Solaris on SPARC (64-bit)


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

/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




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