ubuntu 货物安装:/usr/bin/ld:找不到-lxcb

k5ifujac  于 2023-08-03  发布在  其他
关注(0)|答案(1)|浏览(160)

在Ubuntu 22.04中,它似乎缺少库。
我该怎么解决呢?
这就是ld信息的内容:

ld: mode elf_x86_64
attempt to open /usr/local/lib/x86_64-linux-gnu/libxcb.so failed
attempt to open /usr/local/lib/x86_64-linux-gnu/libxcb.a failed
attempt to open /lib/x86_64-linux-gnu/libxcb.so failed
attempt to open /lib/x86_64-linux-gnu/libxcb.a failed
attempt to open /usr/lib/x86_64-linux-gnu/libxcb.so failed
attempt to open /usr/lib/x86_64-linux-gnu/libxcb.a failed
attempt to open /usr/lib/x86_64-linux-gnu64/libxcb.so failed
attempt to open /usr/lib/x86_64-linux-gnu64/libxcb.a failed
attempt to open /usr/local/lib64/libxcb.so failed
attempt to open /usr/local/lib64/libxcb.a failed
attempt to open /lib64/libxcb.so failed
attempt to open /lib64/libxcb.a failed
attempt to open /usr/lib64/libxcb.so failed
attempt to open /usr/lib64/libxcb.a failed
attempt to open /usr/local/lib/libxcb.so failed
attempt to open /usr/local/lib/libxcb.a failed
attempt to open /lib/libxcb.so failed
attempt to open /lib/libxcb.a failed
attempt to open /usr/lib/libxcb.so failed
attempt to open /usr/lib/libxcb.a failed
attempt to open /usr/x86_64-linux-gnu/lib64/libxcb.so failed
attempt to open /usr/x86_64-linux-gnu/lib64/libxcb.a failed
attempt to open /usr/x86_64-linux-gnu/lib/libxcb.so failed
attempt to open /usr/x86_64-linux-gnu/lib/libxcb.a failed
ld: cannot find -lxcb: No such file or directory

字符串

nwwlzxa7

nwwlzxa71#

在Xubuntu 23.04上尝试cargo install jless时出现类似的错误消息,您可能需要的信息是lxcb在包管理器中被命名为libxcb
我收到的错误消息:

/usr/bin/ld: cannot find -lxcb-xfixes: No such file or directory

字符串
我所做的:

sudo apt install libxcb-xfixes0-dev


希望这对你有帮助!

相关问题