libc.so.6不兼容

1、查看电脑所有libc.so.6

bash 复制代码
david@david-Shangqi-X4270:~/MySoft/ubuntusoft$ locate libc.so.6
/home/david/MySoft/ubuntusoft/EXEApp/libc.so.6
/home/david/MySoft/ubuntusoft/EXEApp_TEST/libc.so.6
/home/david/MySoft/ubuntusoft/RTMG_APP/libc.so.6
/home/david/MySoft/ubuntusoft/RTMG_APP_XUST/libc.so.6
/lib/x86_64-linux-gnu/libc.so.6
/snap/core20/2379/usr/lib/i386-linux-gnu/libc.so.6
/snap/core20/2379/usr/lib/x86_64-linux-gnu/libc.so.6
/snap/core20/2434/usr/lib/i386-linux-gnu/libc.so.6
/snap/core20/2434/usr/lib/x86_64-linux-gnu/libc.so.6
/snap/core22/1663/usr/lib/i386-linux-gnu/libc.so.6
/snap/core22/1663/usr/lib/x86_64-linux-gnu/libc.so.6
/snap/core22/1722/usr/lib/i386-linux-gnu/libc.so.6
/snap/core22/1722/usr/lib/x86_64-linux-gnu/libc.so.6
/snap/snapd/23258/usr/lib/x86_64-linux-gnu/libc.so.6
/snap/snapd/23545/usr/lib/x86_64-linux-gnu/libc.so.6

2、查看版本

bash 复制代码
david@david-Shangqi-X4270:~/MySoft/ubuntusoft$ strings /home/david/MySoft/ubuntusoft/RTMG_APP/libc.so.6 | grep GLIBC_
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_2.15
GLIBC_2.16
GLIBC_2.17
GLIBC_2.18
GLIBC_2.22
GLIBC_2.23
GLIBC_2.24
GLIBC_2.25
GLIBC_2.26
GLIBC_2.27
GLIBC_PRIVATE

3、添加自己的路径替换系统libc

bash 复制代码
#!/bin/sh
appname=`basename $0 | sed s,\.sh$,,`
dirname=`dirname $0`
tmp="${dirname#?}"
if [ "${dirname%$tmp}" != "/" ]; then
dirname=$PWD
fi
echo ${LD_LIBRARY_PATH}
LD_LIBRARY_PATH=$dirname/RTMG_APP:$dirname/RTMG_APP/PPP/sqldrivers:$dirname/RTMG_APP/PPP/platforms:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
echo ${LD_LIBRARY_PATH}
sleep 1
serial-studio

4、serial-studio需要的版本很高

发现我自己的路径/home/david/MySoft/ubuntusoft/RTMG_APP/libc.so.6: version `GLIBC_2.34' not found没有发现GLIBC_2.34,因为我最高才是GLIBC_2.27,需要下载最新的libc.so.6

bash 复制代码
david@david-Shangqi-X4270:~/MySoft/ubuntusoft$ serial-studio 
/opt/serial-studio.AppDir/usr/bin/serial-studio: /home/david/MySoft/ubuntusoft/RTMG_APP/libc.so.6: version `GLIBC_2.34' not found (required by /opt/serial-studio.AppDir/usr/bin/serial-studio)
/opt/serial-studio.AppDir/usr/bin/serial-studio: /home/david/MySoft/ubuntusoft/RTMG_APP/libc.so.6: version `GLIBC_2.33' not found (required by /opt/serial-studio.AppDir/usr/bin/../lib/libcrypto.so.3)
/opt/serial-studio.AppDir/usr/bin/serial-studio: /home/david/MySoft/ubuntusoft/RTMG_APP/libc.so.6: version `GLIBC_2.34' not found (required by /opt/serial-studio.AppDir/usr/bin/../lib/libcrypto.so.3)
/opt/serial-studio.AppDir/usr/bin/serial-studio: /home/david/MySoft/ubuntusoft/RTMG_APP/libc.so.6: version `GLIBC_2.33' not found (required by /opt/serial-studio.AppDir/usr/bin/../lib/libxkbcommon.so.0)
/opt/serial-studio.AppDir/usr/bin/serial-studio: /home/david/MySoft/ubuntusoft/RTMG_APP/libc.so.6: version `GLIBC_2.28' not found (required by /opt/serial-studio.AppDir/usr/bin/../lib/libQt6Core.so.6)
/opt/serial-studio.AppDir/usr/bin/serial-studio: /home/david/MySoft/ubuntusoft/RTMG_APP/libc.so.6: version `GLIBC_2.33' not found (required by /opt/serial-studio.AppDir/usr/bin/../lib/libgssapi_krb5.so.2)
/opt/serial-studio.AppDir/usr/bin/serial-studio: /home/david/MySoft/ubuntusoft/RTMG_APP/libc.so.6: version `GLIBC_2.33' not found (required by /opt/serial-studio.AppDir/usr/bin/../lib/libkrb5.so.3)
/opt/serial-studio.AppDir/usr/bin/serial-studio: /home/david/MySoft/ubuntusoft/RTMG_APP/libc.so.6: version `GLIBC_2.34' not found (required by /opt/serial-studio.AppDir/usr/bin/../lib/libkrb5.so.3)
/opt/serial-studio.AppDir/usr/bin/serial-studio: /home/david/MySoft/ubuntusoft/RTMG_APP/libc.so.6: version `GLIBC_2.33' not found (required by /opt/serial-studio.AppDir/usr/bin/../lib/libk5crypto.so.3)
/opt/serial-studio.AppDir/usr/bin/serial-studio: /home/david/MySoft/ubuntusoft/RTMG_APP/libc.so.6: version `GLIBC_2.33' not found (required by /opt/serial-studio.AppDir/usr/bin/../lib/libkrb5support.so.0)
/opt/serial-studio.AppDir/usr/bin/serial-studio: /home/david/MySoft/ubuntusoft/RTMG_APP/libc.so.6: version `GLIBC_2.34' not found (required by /opt/serial-studio.AppDir/usr/bin/../lib/libkrb5support.so.0)

5、寻找最新的libc:The GNU C Library- GNU Project - Free Software Foundation

Download:Index of /gnu/glibc

安装教程:https://blog.51cto.com/u_16213313/7166959

自己要安装一个单独文件夹,指定安装路径:/home/david/MySoft/ubuntusoft/libc_new

相关推荐
xujiangyan_1 分钟前
php的高速缓存
linux·服务器·php
阿杜杜不是阿木木8 分钟前
使用ollama部署本地大模型(没有GPU也可以),实现IDEA和VS Code的git commit自动生成
linux·git·vscode·ai·intellij-idea·ollama
红肤色22 分钟前
【网络安全基础】CentOS 7超详细安装教程(含镜像)
linux·运维·服务器·安全·网络安全·centos
良许Linux26 分钟前
为什么不让程序员直接对接客户,而是通过产品经理?
linux
钡铼技术物联网关30 分钟前
告别外置电路:IEPE接口如何重构精密测量生态?
linux·arm开发·5g·边缘计算
程序猿(雷霆之王)44 分钟前
Linux——冯 • 诺依曼体系结构&操作系统初识
linux·运维·服务器
宁zz1 天前
乌班图安装jenkins
运维·jenkins
无名之逆1 天前
Rust 开发提效神器:lombok-macros 宏库
服务器·开发语言·前端·数据库·后端·python·rust
大丈夫立于天地间1 天前
ISIS协议中的数据库同步
运维·网络·信息与通信
cg50171 天前
Spring Boot 的配置文件
java·linux·spring boot