Sunday, November 6, 2022

Relink errors when running Oracle 19c on OL9/RHEL9 uncertified platform

 OL9/RHEL9 is not certified to run Oracle 19c/21c yet, here are potential errors you may hit:

[Nov 5, 2022 9:14:19 PM] [WARNING] OUI-67200:Make failed to invoke "/usr/bin/make -f client_sharedlib ORACLE_HOME=/u01/db OPATCH_SESSION=apply"....'/usr/bin/ld: cannot find /usr/lib64/libpthread_nonshared.a genclntsh: Failed to link make: *** [ client_sharedlib] Error 1'

/u01/db/perl/bin/perl: error while loading shared libraries: cannot open shared object file: No such file or directory writing relink log to: /u01/db/install/relinkActions2022-11-05_09-49-32PM.log

/usr/bin/ld: /u01/db/lib//libserver19.a(jskm.o): in function `jskmCheckIMJobBCast': jskm.c:(.text+0x202d): undefined reference to `stat' /usr/bin/ld: jskm.c:(.text+0x2066): undefined reference to `stat' INFO: /usr/bin/ld: /u01/db/lib//libserver19.a(qmsqx.o): in function `qmsqxFetchPos': qmsqx.c:(text.unlikely+0x1052f): undefined reference to `stat' INFO: /usr/bin/ld: /u01/db/lib//libjavavm19.a(eobtl.o): in function `eobti_create_sym_tmp_file': eobtl.c:(.text+0x106): undefined reference to `fstat' /usr/bin/ld: /u01/db/lib//libjavavm19.a(eobtl.o): in function `eobti_digest_symbol_file': eobtl.c:(.text+0x1b8): undefined reference to `fstat' /usr/bin/ld: /u01/db/lib//libjavavm19.a(eobtl.o): in function `eobti_build_lookup_tables': eobtl.c:(.text+0x24ae): undefined reference to `fstat' /usr/bin/ld: eobtl.c:(.text+0x264f): undefined reference to `fstat'

[Nov 5, 2022 10:11:07 PM] [WARNING] OUI-67200:Make failed to invoke "/usr/bin/make -f javavm_refresh ORACLE_HOME=/u01/db OPATCH_SESSION=apply"....'Can't locate File/ in @INC (you may need to install the File::Copy module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /u01/db/javavm/install/ line 66. BEGIN failed--compilation aborted at /u01/db/javavm/install/ line 66. make: *** [ javavm_refresh] Error 2'


yum install perl-File-Copy.noarch yum install libxcrypt-compat

1 comment:

  1. I have worked around this issue by copying "/usr/lib64/libc_nonshared.a" from an Oracle Unbreakable Linux 8 (OUL) machine over to my RHEL9 machine. I am *not* making a professional recommendation to do this, so please don't flame me - I merely want to post that I got around the OP's issue, and now I have Oracle 19.18 running on my RHEL9 machine. Your mileage may vary.