gpt4 book ai didi

linux - libdbus-1.so.3 : cannot open shared object file: No such file or directory

转载 作者:太空宇宙 更新时间:2023-11-04 03:52:30 35 4
gpt4 key购买 nike

[root@maomao bin]# find /usr/local/lib -name libdbus-1.so.3
/usr/local/lib/libdbus-1.so.3
[root@maomao bin]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib
[root@maomao bin]# ldconfig
[root@maomao bin]# filezilla
filezilla: error while loading shared libraries: libdbus-1.so.3: cannot open shared object file: No such file or directory
[root@maomao bin]# export LD_LIBRARY_PATH=/usr/local/lib
[root@maomao bin]# filezilla
filezilla: error while loading shared libraries: libdbus-1.so.3: wrong ELF class: ELFCLASS64
[root@maomao bin]# cp /usr/local/lib/libdbus-1.so.3 ./
[root@maomao bin]# export LD_LIBRARY_PATH=./
[root@maomao bin]# filezilla
filezilla: error while loading shared libraries: libdbus-1.so.3: wrong ELF class: ELFCLASS64
[root@maomao bin]# env | grep LD_LIBRARY_PATH
LD_LIBRARY_PATH=./
[root@maomao bin]# ls
filezilla fzputtygen fzsftp libdbus-1.so.3
[root@maomao bin]#

我确定我有“/usr/local/lib/libdbus-1.so.3”。但我仍然无法运行 filezilla。

最佳答案

虽然我不能告诉你为什么找不到libdbus-1.so.3,但我大胆猜测错误的ELF类:ELFCLASS64是因为你使用的filezilla是32位的,而/usr/local/bin中的libdbus被编译为64位共享对象。您需要确保程序和库是使用兼容的架构类型构建的

要判断程序或共享对象是否构建为 32 位和 64 位,您可以发出如下命令:

file /usr/local/lib/libdbus-1.so.3
file ./filezilla

您使用的操作系统和版本是什么?

关于linux - libdbus-1.so.3 : cannot open shared object file: No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25829915/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com