MP-XQuery is available as packages for CentOS/RHEL 6 and most recent
Ubuntu/Debian versions. For other systems, the module must be build
from source.
You need to enable the relevant software repositories.
For setting up refer to one of:
CentOS 6
,
CentOS 7
,
Ubuntu
and
Debian
The package is called mp-xquery
on RHEL/Debian systems.
Install that package and you are ready to use filter "xquery" in your
setup.