I installed Em 13c last week on Redhat 7.2 the installation was on a vmware vm at the customer that was given to me without explanation. After going through the prereqs and installing missing packages I started the installation of this “temporary” setup. what is OEL so much easier …. Everything went fine up to the configuration of Bi publisher that step failed miserably. Log files showed that the oms which is stopped before didn’t come up. digging a bit deeper showed following in the logs :



2016-05-06 17:08:31,778 INFO [75] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - (if [ "compile" = "compile" ] ; then
/u01/app/oem/middelware/bin/gennttab > ntcontab.c ;
gcc -m64 -fPIC -c ntcontab.c ;
rm -f /u01/app/oem/middelware/lib/ntcontab.o ;
mv ntcontab.o /u01/app/oem/middelware/lib/ ;
/usr/bin/ar rv /u01/app/oem/middelware/lib/libn11.a /u01/app/oem/middelware/lib/ntcontab.o ; fi)

2016-05-06 17:08:32,093 INFO [76] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - gcc: error trying to exec 'as': execvp: Permission denied

2016-05-06 17:08:32,095 INFO [76] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - mv: cannot stat ‘ntcontab.o’: No such file or directory

2016-05-06 17:08:32,102 INFO [76] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - /usr/bin/ar: /u01/app/oem/middelware/lib/ntcontab.o: No such file or directory

2016-05-06 17:08:32,102 INFO [76] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - make: *** [ntcontab.o] Error 1

2016-05-06 17:08:32,103 INFO [64] oracle.sysman.oii.oiix.OiixSpawner - End output from spawned process.
2016-05-06 17:08:32,103 INFO [64] oracle.sysman.oii.oiix.OiixSpawner - ----------------------------------
2016-05-06 17:08:32,103 INFO [64] oracle.sysman.oii.oiis.OiisCompActions - Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'mkldflags ntcontab.o nnfgt.o' of makefile '/u01/app/oem/middelware/network/lib/ins_net_client.mk'. See '/u01/stage/em/disks/OraInstall2016-05-06_04-01-07PM/install2016-05-06_04-01-07PM.log' for details.
Exception Severity: 1
2016-05-06 17:08:32,103 INFO [64] oracle.sysman.oii.oiic.OiicAPISessionInterfaceManager - Retry Handler not registered, using Super class functionality
2016-05-06 17:08:32,104 OFF [64] oracle.sysman.oii.oiio.oiiol.OiiolTextLogger - Error in invoking target 'mkldflags ntcontab.o nnfgt.o' of makefile '/u01/app/oem/middelware/network/lib/ins_net_client.mk'. See '/u01/stage/em/disks/OraInstall2016-05-06_04-01-07PM/install2016-05-06_04-01-07PM.log' for details.
2016-05-06 17:08:32,104 INFO [64] oracle.sysman.oii.oiis.OiisCompActions - Calling Action unixActions10.2.0.3.0 make registerOnly = false installMakePath = /usr/bin/make installMakeFileName = /u01/app/oem/middelware/rdbms/lib/ins_rdbms.mk installTarget = client_sharedlib undoMakeFileName = installArguments = ORACLE_HOME=/u01/app/oem/middelware logFile = /u01/app/oem/middelware/install/make.log undoTarget = progMsg = Building Client Shared Libraries
2016-05-06 17:08:32,105 INFO [64] oracle.sysman.oii.oiio.oiiol.OiiolTextLogger - The output of this make operation is also available at: '/u01/app/oem/middelware/install/make.log'
2016-05-06 17:08:32,106 INFO [64] oracle.sysman.oii.oiix.OiixSpawner - Start output from spawned process:
2016-05-06 17:08:32,106 INFO [64] oracle.sysman.oii.oiix.OiixSpawner - ----------------------------------
2016-05-06 17:08:32,114 INFO [77] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - /u01/app/oem/middelware/bin/genclntsh

2016-05-06 17:08:32,159 INFO [78] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - collect2: fatal error: cannot find 'ld'
compilation terminated.

2016-05-06 17:08:32,159 INFO [78] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - genclntsh: Failed to link libclntsh.so.11.1

2016-05-06 17:08:32,159 INFO [78] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - make: *** [client_sharedlib] Error 1

2016-05-06 17:08:32,159 INFO [64] oracle.sysman.oii.oiix.OiixSpawner - End output from spawned process.
2016-05-06 17:08:32,159 INFO [64] oracle.sysman.oii.oiix.OiixSpawner - ----------------------------------
2016-05-06 17:08:32,160 INFO [64] oracle.sysman.oii.oiis.OiisCompActions - Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'client_sharedlib' of makefile '/u01/app/oem/middelware/rdbms/lib/ins_rdbms.mk'. See '/u01/stage/em/disks/OraInstall2016-05-06_04-01-07PM/install2016-05-06_04-01-07PM.log' for details.
Exception Severity: 1
2016-05-06 17:08:32,160 INFO [64] oracle.sysman.oii.oiic.OiicAPISessionInterfaceManager - Retry Handler not registered, using Super class functionality
2016-05-06 17:08:32,160 OFF [64] oracle.sysman.oii.oiio.oiiol.OiiolTextLogger - Error in invoking target 'client_sharedlib' of makefile '/u01/app/oem/middelware/rdbms/lib/ins_rdbms.mk'. See '/u01/stage/em/disks/OraInstall2016-05-06_04-01-07PM/install2016-05-06_04-01-07PM.log' for details.
2016-05-06 17:08:32,160 INFO [64] oracle.sysman.oii.oiis.OiisCompActions - Calling Action unixActions10.2.0.3.0 make registerOnly = false installMakePath = /usr/bin/make installMakeFileName = /u01/app/oem/middelware/sqlplus/lib/ins_sqlplus.mk installTarget = install undoMakeFileName = installArguments = ORACLE_HOME=/u01/app/oem/middelware logFile = /u01/app/oem/middelware/install/make.log undoTarget = progMsg = Linking SQLPLUS Executables
2016-05-06 17:08:32,161 INFO [64] oracle.sysman.oii.oiio.oiiol.OiiolTextLogger - The output of this make operation is also available at: '/u01/app/oem/middelware/install/make.log'
2016-05-06 17:08:32,162 INFO [64] oracle.sysman.oii.oiix.OiixSpawner - Start output from spawned process:
2016-05-06 17:08:32,162 INFO [64] oracle.sysman.oii.oiix.OiixSpawner - ----------------------------------
2016-05-06 17:08:32,165 INFO [79] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - mkdir -p /u01/app/oem/middelware/sqlplus/bin
16-05-06 17:08:32,166 INFO [79] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - cp -f /u01/app/oem/middelware/lib/libsqlplus.so
/u01/app/oem/middelware/sqlplus/lib/libsqlplus.so

2016-05-06 17:08:32,175 INFO [79] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - Linking /u01/app/oem/middelware/sqlplus/bin/sqlplus

2016-05-06 17:08:32,175 INFO [79] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - rm -f /u01/app/oem/middelware/sqlplus/bin/sqlplus

2016-05-06 17:08:32,176 INFO [79] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - gcc -o /u01/app/oem/middelware/sqlplus/bin/sqlplus -m64 -L/u01/app/oem/middelware/sqlplus/lib/ -L/u01/app/oem/middelware/lib/ -L/u01/app/oem/middelware/lib/stubs/ /u01/app/oem/middelware/sqlplus/lib/s0afimai.o -lsqlplus -lclntsh `cat /u01/app/oem/middelware/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u01/app/oem/middelware/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnnz11 -lzt11 -lztkg11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lmm -lsnls11 -lnls11
2016-05-06 17:08:32,176 INFO [79] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `cat /u01/app/oem/middelware/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u01/app/oem/middelware/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lclient11 -lnnetd11 -lvsn11 -l
2016-05-06 17:08:32,176 INFO [79] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - common11 -lgeneric11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `cat /u01/app/oem/middelware/lib/sysliblist` -Wl,-rpath,/u01/app/oem/middelware/lib -lm -lpthread `cat /u01/app/oem/middelware/lib/sysliblist` -ldl -lm -lpthread -L/u01/app/oem/middelware/lib

2016-05-06 17:08:32,186 INFO [80] oracle.sysman.oii.oiix.OiixSpawner$StreamReader - collect2: fatal error: cannot find 'ld'
compilation terminated.

So basically ld and ar where not allowed to execute due to some acl …. once fixed as root with



setfacl -m u:oem:rx /usr/bin/ld.bfd
setfacl -m u:oem:rx /usr/bin/as


and I restarted the installation it went on smoothly. the sad point is that this error which happened way before configuring the BI publisher wasn’t caught earlier…

Leave a Reply