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

问题描述 投票:0回答:1

在Ubuntu22.04中,似乎缺少libaries。

我该如何解决?

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
linux ubuntu rust linker-errors rust-cargo
1个回答
2
投票

在 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

希望这有帮助!

© www.soinside.com 2019 - 2024. All rights reserved.