From c629ae1517314b4e4aa1489ceb4bf74d2c5be835 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 22 May 2015 14:05:57 +0200 Subject: [PATCH] Installation chapter --- doc/book.xml | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 90 insertions(+), 8 deletions(-) diff --git a/doc/book.xml b/doc/book.xml index 4669bdd..ee75202 100644 --- a/doc/book.xml +++ b/doc/book.xml @@ -31,7 +31,7 @@ using W3C's XQuery language. - Metaproxy is covered by the GNU General Public License version 2. + MP-XQuery is covered by the GNU General Public License version 2. @@ -45,21 +45,103 @@ - Introduction - - MP-XQuery is a module for - Metaproxy. + MP-XQuery is a Metaproxy module + that allows record conversion using + W3C XML XQuery. + The initial motivations for the module was to be able to + BIBFRAME records via SRU/Z39.50. By using the + + marc2bibframe + utilities, this module can convert existing + MARCXML records to BIBFRAME records - on the fly - as part of retrieval. - Installation - + + MP-XQuery is available as packages some CentOS/RHEL 6 and most recent + Ubuntu/Debian versions. For other systems, the module must be build + from source. + + + Installing of packages + + You need to enable the relevant software repositories. + For setting up refer to one of: + CentOS 6 + , + CentOS + and + Debian + + + The package is called mp-sparql on RHEL/Debian systems. + Install that package and you are ready to use filter "xquery" in your + setup. + + + + Installing from source + + 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 -D -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 + + + - Reference -- 1.7.10.4