联系:手机/微信(+86 17813235971) QQ(107644445)
标题:Error in invoking target ‘libasmclntsh19.ohso libasmperl19.ohso client_sharedlib’问题处理
作者:惜分飞©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]
最近在redhat 8.x系列系统中安装Oracle 19c,编译的过程中出现类似:[FATAL] Error in invoking target ‘libasmclntsh19.ohso libasmperl19.ohso client_sharedlib’ of makefile ‘/u01/app/oracle/product/19c/db_1/rdbms/lib/ins_rdbms.mk’.错误
[oracle@xifenfei db_1]$ ./runInstaller -ignorePrereq -waitforcompletion -silent \ > oracle.install.option=INSTALL_DB_SWONLY \ > UNIX_GROUP_NAME=oinstall \ > INVENTORY_LOCATION=${ORACLE_BASE}/oraInventory \ > ORACLE_HOME=${ORACLE_HOME} \ > ORACLE_BASE=${ORACLE_BASE} \ > oracle.install.db.InstallEdition=EE \ > oracle.install.db.OSDBA_GROUP=dba \ > oracle.install.db.OSBACKUPDBA_GROUP=backupdba \ > oracle.install.db.OSDGDBA_GROUP=dgdba \ > oracle.install.db.OSKMDBA_GROUP=kmdba \ > oracle.install.db.OSRACDBA_GROUP=dba \ > SECURITY_UPDATES_VIA_MYORACLESUPPORT=false \ > DECLINE_SECURITY_UPDATES=true Launching Oracle Database Setup Wizard... [WARNING] [INS-13014] Target environment does not meet some optional requirements. CAUSE: Some of the optional prerequisites are not met. See logs for details. /u01/app/oraInventory/logs/InstallActions2025-06-02_05-13-46PM/installActions2025-06-02_05-13-46PM.log ACTION: Identify the list of failed prerequisite checks from the log: /u01/app/oraInventory/logs/InstallActions2025-06-02_05-13-46PM/installActions2025-06-02_05-13-46PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually. The response file for this session can be found at: /u01/app/oracle/product/19c/db_1/install/response/db_2025-06-02_05-13-46PM.rsp You can find the log of this install session at: /u01/app/oraInventory/logs/InstallActions2025-06-02_05-13-46PM/installActions2025-06-02_05-13-46PM.log [FATAL] Error in invoking target 'libasmclntsh19.ohso libasmperl19.ohso client_sharedlib' of makefile '/u01/app/oracle/product/19c/db_1/rdbms/lib/ins_rdbms.mk'. See '/u01/app/oraInventory/logs/InstallActions2025-06-02_05-13-46PM/installActions2025-06-02_05-13-46PM.log' for details.
查看日志中具体信息
INFO: /usr/bin/ld INFO: : cannot find -lclntsh INFO: make[2]: *** [/u01/app/oracle/product/19c/db_1/rdbms/lib/env_rdbms.mk:5232: dlopenlib] Error 1 INFO: make[2]: Leaving directory '/u01/app/oracle/product/19c/db_1/rdbms/lib' INFO: make[1]: *** [/u01/app/oracle/product/19c/db_1/rdbms/lib/env_rdbms.mk:5210: /u01/app/oracle/product/19c/db_1/lib/libasmperl19.so] Error 2 INFO: make[1]: Leaving directory '/u01/app/oracle/product/19c/db_1/rdbms/lib' INFO: make: *** [/u01/app/oracle/product/19c/db_1/rdbms/lib/env_rdbms.mk:5247: libasmperl19.ohso] Error 2 INFO: End output from spawned process. INFO: ---------------------------------- INFO: Exception thrown from action: make Exception Name: MakefileException Exception String: Error in invoking target 'libasmclntsh19.ohso libasmperl19.ohso client_sharedlib' of makefile '/u01/app/oracle/product/19c/db_1/rdbms/lib/ins_rdbms.mk'. See '/u01/app/oraInventory/logs/InstallActions2025-06-02_05-13-46PM/installActions2025-06-02_05-13-46PM.log' for details. Exception Severity: 1 INFO: [Jun 2, 2025 5:16:23 PM] Adding ExitStatus STOP_INSTALL to the exit status set INFO: [Jun 2, 2025 5:16:23 PM] Finding the most appropriate exit status for the current application INFO: [Jun 2, 2025 5:16:23 PM] inventory location is/u01/app/oraInventory INFO: [Jun 2, 2025 5:16:23 PM] Adding ExitStatus SUCCESS_WITH_WARNINGS to the exit status set INFO: [Jun 2, 2025 5:16:23 PM] Finding the most appropriate exit status for the current application INFO: [Jun 2, 2025 5:16:23 PM] Exit Status is -4 INFO: [Jun 2, 2025 5:16:23 PM] Shutdown Oracle Database 19c Installer INFO: [Jun 2, 2025 5:16:23 PM] Unloading Setup Driver
提示缺少lclntsh,对应到数据中为libclntsh动态库文件,检查数据lib中相关文件
[oracle@xifenfei lib]$ ls -ltr libclntsh* lrwxrwxrwx 1 oracle oinstall 12 Jun 2 16:06 libclntsh.so.11.1 -> libclntsh.so lrwxrwxrwx 1 oracle oinstall 12 Jun 2 16:06 libclntsh.so.10.1 -> libclntsh.so lrwxrwxrwx 1 oracle oinstall 12 Jun 2 16:06 libclntsh.so.12.1 -> libclntsh.so lrwxrwxrwx 1 oracle oinstall 12 Jun 2 16:06 libclntsh.so.18.1 -> libclntsh.so lrwxrwxrwx 1 oracle oinstall 17 Jun 2 16:06 libclntsh.so -> libclntsh.so.19.1 -rwxr-xr-x 1 oracle oinstall 8057080 Jun 2 16:11 libclntshcore.so.19.1 lrwxrwxrwx 1 oracle oinstall 21 Jun 2 16:11 libclntshcore.so -> libclntshcore.so.19.1
发现libclntsh.so.*.1都软连接到 libclntsh.so.19.1 而 libclntsh.so.19.1这个文件本身丢失,从安装介质中找到该文件并传输到lib中,修改权限
[oracle@xifenfei ~]$ cd $ORACLE_HOME/lib [oracle@xifenfei lib]$ cp /tmp/libclntsh.so.19.1 ./ [oracle@xifenfei lib]$ chmod 777 libclntsh.so.19.1 [oracle@xifenfei lib]$ ls -ltr libclntsh* lrwxrwxrwx 1 oracle oinstall 12 Jun 2 17:31 libclntsh.so.10.1 -> libclntsh.so lrwxrwxrwx 1 oracle oinstall 12 Jun 2 17:31 libclntsh.so.11.1 -> libclntsh.so lrwxrwxrwx 1 oracle oinstall 12 Jun 2 17:31 libclntsh.so.12.1 -> libclntsh.so lrwxrwxrwx 1 oracle oinstall 12 Jun 2 17:31 libclntsh.so.18.1 -> libclntsh.so lrwxrwxrwx 1 oracle oinstall 17 Jun 2 17:34 libclntsh.so -> libclntsh.so.19.1 lrwxrwxrwx 1 oracle oinstall 21 Jun 2 17:34 libclntshcore.so -> libclntshcore.so.19.1 -rwxr-xr-x 1 oracle oinstall 82573024 Jun 2 17:34 libclntsh.so.19.1 -rwxr-xr-x 1 oracle oinstall 8057080 Jun 2 17:34 libclntshcore.so.19.1
后续重新执行runInstaller相关命令安装正常,这个问题本质是由于libclntsh.so.19.1文件丢失导致,我查看了unzip解压日志,发现是解压出来了该文件的,具体什么原因丢失未知