小编Rok*_*kit的帖子

我应该安装什么来纠正“ld:找不到 -lgbm 和 -linput”,以便我可以编译 Rust 程序?

dnf search linput并且dnf search lgbm不产生任何结果。我怎样才能在 Fedora 中获得这些?

编辑:背景故事

我正在尝试构建一个 Rust 程序,但它无法编译,因为显然我遗漏了一些东西。它说:

  = note: /usr/bin/ld: cannot find -lxkbcommon
          /usr/bin/ld: cannot find -lxkbcommon
          /usr/bin/ld: cannot find -linput
          /usr/bin/ld: cannot find -lgbm
          collect2: error: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)

我安装了lxkbcommon(编辑:我实际上安装了libxkbcommon。不知道我是怎么错过的。)dnf install libxkbcommon-devel然后输出看起来像这样:

  = note: /usr/bin/ld: cannot find -linput
          /usr/bin/ld: cannot find -lgbm
          collect2: error: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)

所以,我想我需要的东西叫linputlgbm为好,只有我找不到那些dnf search和我来了空手与谷歌。

fedora repository

2
推荐指数
1
解决办法
6860
查看次数

标签 统计

fedora ×1

repository ×1