title: Oracle 12.1.0 on Ubuntu 18.04 - Error in invoking target ''links proc gen_pcscfg procob'' of makefile ''<oraclehome>/precomp/lib/ins_precomp.mk''
body: <p>I am trying to install Oracle database 12.1.0 on Ubuntu 18.04. I follow the instructions contained in <a href="http://www.techienote.com/install-oracle-12c-on-ubuntu/" rel="nofollow noreferrer">http://www.techienote.com/install-oracle-12c-on-ubuntu/</a>. At 59% of installation process, I am facing the below error.</p>
  
  <p>Error in invoking target 'links proc gen_pcscfg procob' of makefile '/u01/app/oracle/product/12.1.0/dbhome_1/precomp/lib/ins_precomp.mk'. </p>
  
  <p>I have tried applying the below fix but the still exists. Can anyone suggest a solution for it.</p>
  
  <p>rm -rf $ORACLE_HOME/lib/stubs/* cp $ORACLE_HOME/rdbms/lib/env_rdbms.mk $ORACLE_HOME/rdbms/lib/env_rdbms.mk.orig</p>
  
  <p><strong>Line 176</strong></p>
  
  <p>FROM:
  LINKTTLIBS=$(LLIBCLNTSH) $(ORACLETTLIBS) $(LINKLDLIBS)</p>
  
  <p>TO :
  LINKTTLIBS=$(LLIBCLNTSH) $(ORACLETTLIBS) $(LINKLDLIBS) -lons</p>
  
  <p><strong>Line 279-280</strong></p>
  
  <p>FROM:
  LINK=$(FORT_CMD) $(PURECMDS) $(ORALD) $(LDFLAGS) $(COMPSOBJS) LINK32=$(FORT_CMD) $(PURECMDS) $(ORALD) $(LDFLAGS32) $(COMPSOBJS)</p>
  
  <p>TO :
  LINK=$(FORT_CMD) $(PURECMDS) $(ORALD) $(LDFLAGS) $(COMPSOBJS) -Wl,--no-as-needed LINK32=$(FORT_CMD) $(PURECMDS) $(ORALD) $(LDFLAGS32) $(COMPSOBJS) -Wl,--no-as-needed</p>
  
  <p><strong>Line 3041-3042</strong></p>
  
  <p>FROM:
  TG4PWD_LINKLINE= $(LINK) $(OPT) $(TG4PWDMAI) \ $(LLIBTHREAD) $(LLIBCLNTSH) $(LINKLDLIBS)</p>
  
  <p>TO :
  TG4PWD_LINKLINE= $(LINK) $(OPT) $(TG4PWDMAI) \ $(LLIBTHREAD) $(LLIBCLNTSH) $(LINKLDLIBS) -lnnz12</p>
  
  <p>Click the "Retry" button.</p>