Applying Patch fails with /usr/local/bin/ld: cannot find -lz (Doc ID 2248693.1)

Last updated on APRIL 05, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Linux x86-64

Symptoms

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

Patching component oracle.rdbms.dbscripts, 12.1.0.2.0...
Make failed to invoke "/usr/bin/make -f ins_ctx.mk ictxhx ORACLE_HOME=/u01/app/oracle/product/12.1.0.2"....'/usr/local/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [ctxhx] Error 1



The following make actions have failed :

Re-link fails on target "ictxhx".



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