error while loading shared libraries: libstdc++.so.5: wrong ELF class: ELFCLASS64

今天部署一个探针在运行的时候报了这样一个错:error while loading shared libraries: libstdc++.so.5: wrong ELF class: ELFCLASS64

[root@db152 rma_p_unix]# ldd xxxx
        linux-gate.so.1 =>  (0x00dd7000)
        libstdc++.so.5 => not found  # 发现这边动态库找不着

这个报错大致意思是说,这动态库文件是64位的,软件是32位的,最后找了一个libstdc++.so.5 32位的库文件cp到了/usr/lib/再ldd发现就可以了。

原文地址:https://www.cnblogs.com/zhangweiyi/p/10606317.html