当前位置: 技术问答>linux和unix
求教:libmysqlclient.so.16 找不到库
来源: 互联网 发布时间:2017-02-18
本文导语: 在运行程序时提示error while loading shared libraries: libmysqlclient_r.so.15: wrong ELF class: ELFCLASS64 libmysqlclient_r.so.15在/usr/lib64/mysql/目录下,其它的相关信息如下 程序的相关信息:ELF 32-bit LSB executable, Intel 80386, version ...
在运行程序时提示error while loading shared libraries: libmysqlclient_r.so.15: wrong ELF class: ELFCLASS64
libmysqlclient_r.so.15在/usr/lib64/mysql/目录下,其它的相关信息如下
程序的相关信息:ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
使用ldd时提示libmysqlclient_r.so.15 => not found,只有这个库没有
当前可用的mysql的动态链接库有:
libmysqlclient_r.so.15 (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient_r.so.15
libmysqlclient_r.so.15 (libc6,x86-64) => /usr/lib/libmysqlclient_r.so.15
libmysqlclient_r.so (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient_r.so
libmysqlclient.so.15 (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient.so.15
libmysqlclient.so.15 (libc6,x86-64) => /usr/lib/libmysqlclient.so.15
libmysqlclient.so (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient.so
而且已经修改了/etc/ld.so.conf文件,添加了如下两句
/usr/lib64/mysql/
/usr/lib
但是程序依旧会提示error while loading shared libraries: libmysqlclient_r.so.15: wrong ELF class: ELFCLASS64的错误
请问这个问题该怎么解决
libmysqlclient_r.so.15在/usr/lib64/mysql/目录下,其它的相关信息如下
程序的相关信息:ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
使用ldd时提示libmysqlclient_r.so.15 => not found,只有这个库没有
当前可用的mysql的动态链接库有:
libmysqlclient_r.so.15 (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient_r.so.15
libmysqlclient_r.so.15 (libc6,x86-64) => /usr/lib/libmysqlclient_r.so.15
libmysqlclient_r.so (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient_r.so
libmysqlclient.so.15 (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient.so.15
libmysqlclient.so.15 (libc6,x86-64) => /usr/lib/libmysqlclient.so.15
libmysqlclient.so (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient.so
而且已经修改了/etc/ld.so.conf文件,添加了如下两句
/usr/lib64/mysql/
/usr/lib
但是程序依旧会提示error while loading shared libraries: libmysqlclient_r.so.15: wrong ELF class: ELFCLASS64的错误
请问这个问题该怎么解决
|
程序是32位的而数据库的动态链接库是64位的