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

相关推荐
如何学会学习?11 分钟前
5 list 语法
linux·list·shell
九皇叔叔21 分钟前
Linux 获取文本部分内容
linux·运维·服务器
重生之我是小白菜1 小时前
在 Linux 下Ubuntu创建同权限用户
linux·运维·ubuntu
smart_ljh2 小时前
Jenkins持续集成与交付安装配置
运维·ci/cd·jenkins
sun0077003 小时前
键盘鼠标共享工具Barrier(kail与windows操作系统)
linux
筑梦之路3 小时前
Linux 高级路由 —— 筑梦之路
linux·运维
名为逗比3 小时前
从CentOS到龙蜥:企业级Linux迁移实践记录(系统安装)
linux·运维·centos
我是唐青枫3 小时前
Linux ffmpeg 基础用法
linux·运维·ffmpeg
一张假钞3 小时前
CentOS 6.8 安装 Nginx
linux·nginx·centos
AnnyYoung3 小时前
yum系统报错:SyntaxError: multiple exception types must be parenthesized
linux·运维·服务器·centos