Relink error "0706-006 Can not find or open the library file: -l agtsh" during 11.2 installation. (Doc ID 2186114.1)

Last updated on SEPTEMBER 28, 2016

Applies to:

Oracle Database - Standard Edition - Version 11.2.0.1 and later
Information in this document applies to any platform.

Symptoms

From installation log:
------------------------

INFO: - Linking dg4odbc agent

INFO: rm -f /orasntl/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/dg4odbc

INFO: ld -o -b64 /orasntl/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/dg4odbc -L / orasntl / app / oracle / product / 11.2.0 / dbhome_1 / rdbms / lib / -L /orasntl/app/oracle/product/11.2.0/dbhome_1/lib/ /orasntl/app/oracle/product/11.2.0/dbhome_1/hs/lib/dg4odbc.o /orasntl/app/oracle/product/11.2. 0 / dbhome_1 / rdbms / lib / homts.o -lhgosh11 -lhggcon11 -lhgosh11 -lagtsh -lpthreads -lclntsh -brtl -lld -lm 'cat / orasntl / app / oracle / product / 11.2.0 / dbhome_1 / lib / sysliblist' -lm

INFO: ld: 0706-006 Can not find or open the library file: -l agtsh
ld: open (): A file or a directory path does not exist.
make: 1254-004 Error code of the last command: 255.
and
************************************************** ******************************************
INFO: - Linking HS ORACLE / OIC agent

INFO: rm -f /orasntl/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/hsalloci

INFO: ld -o -b64 /orasntl/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/hsalloci -L / orasntl / app / oracle / product / 11.2.0 / dbhome_1 / rdbms / lib / -L /orasntl/app/oracle/product/11.2.0/dbhome_1/lib/ /orasntl/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/shorm.o /orasntl/app/oracle/product/11.2. 0 / dbhome_1 / rdbms / lib / horm.o /orasntl/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/homts.o /orasntl/app/oracle/product/11.2.0/dbhome_1/rdbms/ lib / hoaoci.o /orasntl/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/hsxaora.o / orasntl / a
INFO: pp / oracle / product / 11.2.0 / dbhome_1 / rdbms / lib / xaondy.o -lagtsh -lpthreads -lclntsh -brtl -lld -lm 'cat /orasntl/app/oracle/product/11.2.0/dbhome_1/ lib / sysliblist' -lm -be: /orasntl/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/extproc.exp /orasntl/app/oracle/product/11.2.0/dbhome_1/lib/nautab. o /orasntl/app/oracle/product/11.2.0/dbhome_1/lib/naeet.o /orasntl/app/oracle/product/11.2.0/dbhome_1/lib/naect.o / orasntl / app / oracle / product / 11.2.0 / dbhome_1 / lib / 'cat naedhs.o /orasntl/app/oracle/product/11.2.0/db
INFO: home_1 / lib / ldflags' -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 'cat / orasntl / app / oracle / product / 11.2.0 / dbhome_1 / lib / ldflags' -lncrypt11 -lnsgr11 -lnzjs11 -ln11 - lnl11 -lnnz11 -lzt11 -lztkg11 -lztkg11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lmm -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 - lnls11 'cat / orasntl / app / oracle / product / 11.2.0 / dbhome_1 / lib / ldflags' -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -
INFO: lnro11 'cat / orasntl / app / oracle / product / 11.2.0 / dbhome_1 / lib / ldflags' -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lpls11 -lrt -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lld -lm
INFO: 'cat / orasntl / app / oracle / product / 11.2.0 / dbhome_1 / lib / sysliblist' -lm -lpls11 -lrt -lsql11

INFO: ld: 0706-006 Can not find or open the library file: -l agtsh
ld: open (): A file or a directory path does not exist.

INFO: make: 1254-004 Error code of the last command: 255.

 



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