首页 > 编程语言 >关于SAP-APP机器-R3trans -d报错-R3trans: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (re

关于SAP-APP机器-R3trans -d报错-R3trans: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (re

时间:2024-03-04 15:12:00浏览次数:22  
标签:GLIBCXX libstd SAP c++ 报错 R3trans lib64 sap

在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

 

 

 

尊重别人的劳动成果 转载请务必注明出处:https://www.cnblogs.com/5201351/p/18051859

 

标签:GLIBCXX,libstd,SAP,c++,报错,R3trans,lib64,sap
From: https://www.cnblogs.com/5201351/p/18051859

相关文章

  • pip install selenium报错 raise ReadTimeoutError--解决方法
    pipinstallselenium报错如下:raiseReadTimeoutError(self._pool,None,"Readtimedout.")pip._vendor.urllib3.exceptions.ReadTimeoutError:HTTPSConnectionPool(host='files.pythonhosted.org',port=443):Readtimedout. 原因:timeout超时,默认15s解......
  • nacos报错
    1.nacos日志报错com.alibaba.nacos.api.exception.runtime.NacosRuntimeException:ErrCode:500,ErrMsg:Userlimitofinotifywatchesreached解决:这个错误是由于Linux中inotify观察者数量达到上限导致的。在Linux系统中,inotify是用来监视文件系统事件的机制,当监视的文......
  • JSON.parse解析字符串报错-SyntaxError: Unexpected token ‘ in JSON at position 报
    “SyntaxError:Unexpectedtoken’inJSONatposition”报错原因是因为解析的字符串对象中,JSON.parse无法识别;JSON.parse可以将标准的json类型数据转换为JavaScript对象,如果数据不是正确的json类型的数据则会控制台报错,可能会阻断代码的正常运行我们可以写一个函数来......
  • shell工具连接linux时的报错问题
    问题描述在使用shell工具连接linux时报以下错误SSH!Agentauthselected,butnorunningagentisdetectedSSH!Agentauthselected,butnorunningagentisdetected解决方法方法1#首先使用ping方法查看是否在同一网段pingxxx.xxx.xx.x方法2#安装[openss......
  • pytorch报错:Variable._execution_engine.run_backward( # Calls into the C++ engine
    GPU模式下运行pytorch代码报错,pytorch为2.2.1,NVIDIA驱动版本535.161.07File"/home/devil/anaconda3/envs/sample-factory/lib/python3.11/site-packages/torch/_tensor.py",line522,inbackwardtorch.autograd.backward(File"/home/devil/anaconda3/envs/sample-......
  • 解决ssh链接报错问题
    在使用ssh连接时出现报错,如下┌──(kali㉿kali)-[~]└─[email protected]:nomatchinghostkeytypefound.Theiroffer:ssh-rsa,ssh-dss意思就是找不到匹配的主机密钥类型,需要手动......
  • Linux_Centos_yum报错总结
    ​此篇适用于yum报错【尝试其他镜像】并且【curl外网】不通的情况,此时一般考虑是网络的问题一,出现的报错信息: 此时测试curl/pingwww.baidu.com会发现无法连通 二,解决方法:1,首先查看dns的配置文件/etc/resolv.conf检查这里的nameserver这里有时候会因为第二个网卡......
  • Centos 上python3 pip3安装报错:WARNING: pip is configured with locations that requ
    pip3安装报错:WARNING:pipisconfiguredwithlocationsthatrequireTLS/SSL,howeverthesslmoduleinPythonisnotavailable.在网上查一下原因是openssl版本不兼容导致,centos默认带的openssl版本太低,要升级openssl版本。openssl  下载地址:https://www.openssl.org/s......
  • Windows安装node.js以及环境配置、常见npm镜像源、npm安装包报错 解决https证书过期 r
    一、Windows安装node.js以及环境配置1、下载Node.js安装包Node.js官方网站,选择LTS版本或者最新版本,然后点击下载按钮。.msi是软件安装包、.zip是压缩包,解压之后即可,不需要安装2、运行安装程序下载完成后,双击安装包运行安装程序。安装完成后,在Node的安装目录下创建两个......
  • zabbix-server启动后没有10051端口,web端报错
    1、登入zabbixweb端,报错信息如下 2、登入服务器上查看zabbix-server、zabbix-agent2、apache2等服务都正常运行 3、检查端口情况,发现apache2---80正常、zabbix-agent2---10050正常,只有zabbix-server没有端口信息(图一也是细节那栏也没有localhost:10051) 4、查看zab......