APPLIES TO:
Oracle Fusion Middleware – Version 11.1.2.2.0 and later
Information in this document applies to any platform.
ERROR:
FMW 11.1.1.9 OID installation or 11.1.2.2 Forms and reports installation on RHEL/OEL 7 fails with the error Error in invoking target ‘install’ of makefile $ORACLE_HOME/sqlplus/lib/ins_sqlplus.mk‘
Full stack of the error message is as below as seein in install<time_stamp>.log
[2018-06-12T21:14:41.874+10:00] [as] [NOTIFICATION] [] [oracle.as.install.engine.modules.silent] [tid: 36] [ecid: <ECID>] Processing event:2217
[2018-06-12T21:14:41.874+10:00] [as] [ERROR] [] [oracle.as.install.engine.modules.silent] [tid: 36] [ecid: <ECID>] OUI Session failed[[
oracle.sysman.oii.oiic.OiicInstallAPIException: Error in invoking target ‘install’ of makefile ‘ $ORACLE_HOME/sqlplus/lib/ins_sqlplus.mk’. See ‘<ORACLE_INVENTORY>/logs/install2018-06-12_09-12-49PM.log’ for details.
at oracle.sysman.oii.oiic.OiicAPIInstaller.doOperation(OiicAPIInstaller.java:1084)
at oracle.as.install.engine.modules.install.action.OUIInstaller.start(OUIInstaller.java:458)
at oracle.as.install.engine.modules.install.action.InstallManager.launchOUI(InstallManager.java:217)
at oracle.as.install.engine.modules.install.InstallModule.launchOUI(InstallModule.java:165)
at oracle.as.install.engine.modules.install.InstallModule$1.run(InstallModule.java:265)
Caused by: oracle.sysman.oii.oiif.oiifb.OiifbEndIterateException: Error in invoking target ‘install’ of makefile ‘ $ORACLE_HOME/sqlplus/lib/ins_sqlplus.mk’. See ‘<ORACLE_INVENTORY>/logs/install2018-06-12_09-12-49PM.log’ for details.
at oracle.sysman.oii.oiic.OiicInstallAPISession.doOperation(OiicInstallAPISession.java:477)
at oracle.sysman.oii.oiic.OiicAPIInstaller.doOperation(OiicAPIInstaller.java:1039)
… 4 more
CAUSE:
Issue is caused because of the below error that can be seen in the install<time_stamp>.log
make[1]: *** [/app01/appoid/middleware/oid_home/sqlplus/bin/sqlplus32] Error 1
make: *** [newsqlplus32] Error 2
This error says that the linking of the sqlplus32 library failed because it can not find 32 bit version of lclntsh library.
This libclntsh.so is generated by genclntsh script. In the same logs, it can be seen that the creation of this .so file had failed with the below error
/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
]] [2018-06-12T21:14:34.110+10:00] [OUI] [NOTIFICATION] [] [OUI] [tid: 82] [ecid: <ECID>] ‘if [ -d $ORACLE_HOME/lib32 ]; then rm -f $ORACLE_HOME/lib32/libclntsh.so.10.1; rm -f $ORACLE_HOME/lib/libclntsh.so.10.1; else rm -f $ORACLE_HOME/lib/libclntsh.so.10.1; fi ‘[[]] [2018-06-12T21:14:34.110+10:00] [OUI] [NOTIFICATION] [] [OUI] [tid: 83] [ecid: <ECID>] genclntsh: Failed to link libclntsh.so.11.1[[
This is a known issue when installing db client/FMW products that use this client on Linux 7 release.
The issue occurs when binutils version 2.26 or 2.27 has been installed on the system. This breaks compatibility for certain shared library links
Bug 25562661 : ORACLE 12.1.0.2 32BIT CLIENT INSTALLATION ON SLES12 SP2 FAILS.
SOLUTION
Currently, the known solution to fix this issue is to downgrade binutils package to version binutils-2.25 and then reinstall the software.
# yum downgrade binutils-2.25.1-32.base.el7_4.2.x86_64.rpm