To build from source, you need zorba and metaproxy development
packages. Zorba
might be installed in /opt/zorba
as follows:
tar zxf zorba-3.0.tar.gz cd zorba-3.0 mkdir build cd build cmake -Wno-dev \ -D CMAKE_INSTALL_PREFIX=/opt/zorba \ -D ZORBA_SUPPRESS_SWIG:BOOL=ON \ .. sudo make install
Consult the Zorba documentation for more information.
Metaproxy can be installed as follows:
./configure make sudo make install
But consult the Metaproxy documentation for requirements and options.
We are now ready to build the MP-XQuery module with:
cd mp-xquery-version make ZORBA=/opt/zorba MP_CONFIG=/usr/local/bin/mp-config
Adjust ZORBA
and MP_CONFIG
values
above for the correct location of installed
Zorba and Metaproxy's mp-config respectively. MP_CONFIG can be omitted
if Metaproxy was installed in the system PATH.
You can now install the metaproxy_filter_xquery.so
in a directory searched by Metaproxy daemon.
Specifically, that's the directories
given by the dlpath
configuration.
If dlpath includes /usr/lib/metaproxy6/modules
,
the module can be installed with:
cp src/metaproxy_filter_xquery.so /usr/lib/metaproxy6/modules
For RHEL/CentOS systems on 64-bit architectures, the correct paths is:
/usr/lib64/metaproxy6/modules
.