当试图在Oracle Linux 7.3或7.5上安装Oracle 12c 32位客户端(12.1或12.2)时,它会在链接静态库时引发错误:
INFO: Start output from spawned process:
INFO: ----------------------------------
INFO:
INFO: /u01/app/oracle/product/12.2.0_client32/bin/genclntsh
INFO: /bin/ld: /u01/app/oracle/product/12.2.0_client32/lib/libnls12.a(lxecg2e.o): direct GOT relocation R_386_GOT32 against `lxecerr' without base register can not be used when making a shared object
/bin/ld: final link failed: Bad value
INFO: collect2: error: ld returned 1 exit status
INFO: genclntsh: Failed to link libclntshcore.so.12.1
INFO: make: *** [client_sharedlib] Error 1不是很具体,我在Oracle 2246237.1中只找到了一个引用。
根本原因和解决办法是:
理由
SLES 12 SP2附带了binutils 2.26,这破坏了某些共享库链接的兼容性。
解决方案 01)将binutils包更新为版本binutils-2.26.1-9.15.1或更高版本。
但实际上,我的服务器binutils中有-2.27-27.base.el7.x86_64。
解决方案-以下。
发布于 2018-08-14 11:52:26
解决方法是降级二进制文件:
jhartman@sms.jhartman.pl:/home/jhartman$ sudo yum downgrade binutils*
Loaded plugins: ulninfo
Resolving Dependencies
--> Running transaction check
---> Package binutils.x86_64 0:2.25.1-32.base.el7_4.2 will be a downgrade
---> Package binutils.x86_64 0:2.27-27.base.el7 will be erased
---> Package binutils-devel.x86_64 0:2.25.1-32.base.el7_4.2 will be a downgrade
---> Package binutils-devel.x86_64 0:2.27-27.base.el7 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================================================================================================================================================
Downgrading:
binutils x86_64 2.25.1-32.base.el7_4.2 ol7_latest 5.4 M
binutils-devel x86_64 2.25.1-32.base.el7_4.2 ol7_latest 845 k
Transaction Summary在此之后,可以编译和链接库:
oracle$ export ORACLE_HOME=/u01/app/oracle/product/12.2.0_client32
oracle$ /u01/app/oracle/product/12.2.0_client32/bin/genclntsh
oracle$我确实相信,在完成安装之后,可以再次将binutils升级到最新版本(但在安装RSU时不要忘记这个问题)。
PS:我已经提出了SR 3-17356002141 :安装Oracle32位客户端时出错(直接从`ipp_zcalloc重定位`ipp_zcalloc‘)
https://serverfault.com/questions/926317
复制相似问题