如何安装xorg-server软件包

我正在按照这个recipe从源代码构建xf86-input-libinput,并应用了一个补丁。
执行命令./configure --prefix=/usr时出现了一个错误,我还没有解决。
checking for xorg-server >= 1.10 xproto inputproto >= 2.2... no
configure: error: Package requirements (xorg-server >= 1.10 xproto inputproto >= 2.2) were not met:

No package 'xorg-server' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XORG_CFLAGS
and XORG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

我已经安装了 xserver-xorg,它是最新版本 1:7.7+22ubuntu1。我做错了什么?
2个回答

可能在做类似的事情。(见下面的错误信息) 发布一个更完整和立即有用的答案
检查XORG...没有 配置错误:未满足软件包要求(xorg-server >= 1.7 xproto inputproto):
找不到软件包'xorg-server' 找不到软件包'xproto' 找不到软件包'inputproto'
您可以这样安装所需的开发包:
sudo apt-get install xserver-xorg-dev
我还需要
sudo apt-get install xutils-dev
感谢前一个答案中的评论,您可以查找软件包名称

你需要的是开发包,而不仅仅是运行时二进制包。
$ dpkg -S xorg-server.pc
xserver-xorg-dev: /usr/lib/x86_64-linux-gnu/pkgconfig/xorg-server.pc

dpkg -S 只适用于已安装的软件包。为什么不推荐使用 apt-file 或者 https://packages.ubuntu.com/search?suite=hirsute&arch=amd64&mode=exactfilename&searchon=contents&keywords=xorg-server.pc? - N0rbert
@N0rbert 我的意图并不是真的要推荐它,只是为了展示答案。 - steeldriver