Score:2

How to install package xorg-server

cn flag

I'm following this recipe to build xf86-input-libinput from source with a patch applied.

The command ./configure --prefix=/usr gives me an error that I haven't been able to resolve:

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.

I've already installed xserver-xorg, it's at the newest version 1:7.7+22ubuntu1. What am I doing wrong?

Score:2
hr flag

You need the development package, not just the runtime binary package:

$ dpkg -S xorg-server.pc
xserver-xorg-dev: /usr/lib/x86_64-linux-gnu/pkgconfig/xorg-server.pc
N0rbert avatar
zw flag
`dpkg -S` will work only for already installed. Why not recommend `apt-file` or https://packages.ubuntu.com/search?suite=hirsute&arch=amd64&mode=exactfilename&searchon=contents&keywords=xorg-server.pc ?
hr flag
@N0rbert my intention wasn't really to recommend it - just to demonstrate the answer
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.