本人系统fedora35,KDE桌面,使用命令`go get github.com/go-vgo/robotgo`的时候提示以下错误
```
# github.com/robotn/gohook
In file included from ./event/pub.h:20,
from ./event/goEvent.h:18,
from ../../pkg/mod/github.com/robotn/gohook@v0.31.3/hook.go:22:
./event/../hook/x11/input_c.h:39:10: fatal error: xkbcommon/xkbcommon.h: No such file or directory
39 | #include <xkbcommon/xkbcommon.h>
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
```
看不懂错误提示,请问各位大神这是什么情况,该怎么处理?
### 非常感谢!
#### 按照你的指示去装了libxkbcommon的dev包,不过还是不行!
#### 后来我发现github上的一句话`X11 with the XTest extension (the Xtst library)`上的一个x11,然后我搜索了x11,找到了libxkbcommon-x11-devel-1.3.1-1.fc35.x86_64这个包,安装上了,然后就可以了。
#### 问题解决了!感谢你!
#4
更多评论
.h是c文件的头
https://github.com/go-vgo/robotgo#requirements
```
For everything else:
xcb, xkb, libxkbcommon
```
安装 libxkbcommon 的dev包
#1
先谢谢,我输入`sudo dnf install xcb xkb libxkbcommon`之后,命令行提示如下,没有xcb和xkb啊。
```
Repository fedora is listed more than once in the configuration
Repository fedora-debuginfo is listed more than once in the configuration
Repository fedora-source is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository updates-debuginfo is listed more than once in the configuration
Repository updates-source is listed more than once in the configuration
上次元数据过期检查:0:41:44 前,执行于 2022年02月11日 星期五 18时49分35秒。
未找到匹配的参数: xcb
未找到匹配的参数: xkb
软件包 libxkbcommon-1.3.1-1.fc35.x86_64 已安装。
错误:没有任何匹配: xcb xkb
```
#2