关于SAP-APP机器-R3trans -d报错-R3trans: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by R3trans)
Posted on 2024-03-04 15:10 520_1351 阅读(70) 评论(0) 编辑 收藏 举报在SAP-应用-APP-机器上执行如下命令报错
awpxxx03:prdadm 270> R3trans -d
R3trans: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by R3trans)
其实之前,使用过一种方法解决这个问题,可以参考笔者另一篇文章
《关于Redhat-Linux中-compat-sap-c++的说明与GLIBCXX_3.4.26 not found报错的解决方法》
但是后来发现、每次系统升级重启、或者安装软件(笔者测试的sos软件包-sosreport命令)都会导致软连接还原成系统默认的
根原因-Root Cause:
The base install of RHEL 8 does not provide such a new libstdc++ ABI.
Usually, such an application would be considered not compatible with RHEL 8 and need to be run under a newer RHEL such as RHEL 9.
However, specifically for SAP, there is an additional compatibility package provided.
解决方法-Resolution
[root@awpxxx03 qq-5201351]# subscription-manager repos --enable rhel-8-for-x86_64-sap-solutions-rpms [root@awpxxx03 qq-5201351]# yum install compat-sap-c++-12
Create a library path for SAP and symlink the new library into it:
mkdir -p /usr/sap/lib ln -s /opt/rh/SAP/lib64/compat-sap-c++-12.so /usr/sap/lib/libstdc++.so.6
Note: Do not symlink or replace the system-wide C++ standard library at /lib64/libstdc++.6.so
!
Ensure the new library path has correct permissions for the installation's System Identifier (SID):
chown -R SIDadm:sapsys /usr/sap/lib
Start the SAP application.
注:这里的 SIDadm,需要修改成自己实际情况中的用户名称
The compat-sap-c++ packages should not be used as a replacement for RHEL's C++ standard library at /lib64/libstdc++.6.so.
Using any compat-sap-c++ packages to run other non-SAP software is not supported by Red Hat.
其他补充的操作:将之前的临时解决方法,还原回去(根据实际情况进行命令的)
cd /lib64 ln -sf libstdc++.so.6.0.25 /lib64/libstdc++.so.6
最后再次检查验证,结果输出正常 -(笔者测试发现,整个过程不需要重启SAP)
awpxxx03:prdadm 271> R3trans -d This is R3trans version 6.26 (release 754 - 12.05.23 - 16:07:06). unicode enabled version R3trans finished (0000). awpxxx03:prdadm 272>
尊重别人的劳动成果 转载请务必注明出处:https://www.cnblogs.com/5201351/p/18051859
作者:一名卑微的IT民工
出处:https://www.cnblogs.com/5201351
本博客所有文章仅用于学习、研究和交流目的,欢迎非商业性质转载。
由于博主的水平不高,文章没有高度、深度和广度,只是凑字数,不足和错误之处在所难免,希望大家能够批评指出。
博主是利用读书、参考、引用、复制和粘贴等多种方式打造成自己的文章,请原谅博主成为一个卑微的IT民工!
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库
· 上周热点回顾(2.17-2.23)
2023-03-04 关于最大公约数-最大公因数-互质-互素的原理与表示方法