1、查看电脑所有libc.so.6
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、查看版本
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
#!/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
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