Linux系统Tomcat出现 libstdc++.so.6: cannot open shared object file: No such file or directory

Linux系统 Centos 7.9.2009 x86_64(py3.7.9)
在服务器调用Pythonai模型 出现如下报错
Caused by: java.lang.UnsatisfiedLinkError: /home/springboot/.djl.ai/pytorch/1.9.1-cpu-linux-x86_64/libc10.so: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/springboot/.djl.ai/pytorch/1.9.1-cpu-linux-x86_64/libc10.so)
在网上搜索后 说是没有使用最新的动态库,
于是在按照如图指令libstdc++.so.6链接了一个更高版本的libstdc++.so.6.0.24之后,

img


出现下图问题
在运行springboot项目时无法运行,下图为日志

img


请问应当怎么解决

你把报错发给我看一下

啥意思啊没看懂你问的