Installing yaz, yazpp and metaproxy on RHEL 6.2
Here the steps I just took to install metaproxy (which requires yaz and yaz++) on Red Hat Enterprise Linux 6.2. The reason for this exercise is because Indexdata’s RPMs don’t work for 6.2 (the versions of boost-devel and icu-devel they require seem to only be available in 5.5). Since I expect Indexdata to eventually release 6.2 compatible RPMs, I installed all of this into /opt/local (so it’s easy to remove — of course, if you’re already using /opt/local, you might want to try somewhere else). Also, this assumes you’ll put a metaproxy.xml in /opt/local/etc/metaproxy/, so keep that in mind.
- yum install boost boost-devel icu icu-devel libxml2 libxml2-devel gnutls gnutls-devel libxslt libxslt-devel gcc-c++ libtool
- Install yaz:
- wget http://ftp.indexdata.dk/pub/yaz/yaz-4.2.33.tar.gz
- tar -zxvf yaz-4.2.33.tar.gz
- cd yaz-4.2.33
- ./configure –prefix=/opt/local
- make
- make install
- Install yaz++
- wget http://ftp.indexdata.dk/pub/yazpp/yazpp-1.3.0.tar.gz
- tar -zxvf yazpp-1.3.0.tar.gz
- cd yazpp-1.3.0
- ./configure –prefix=/opt/local/ –with-yaz=/opt/local/bin
- make
- make install
- Install metaproxy
- wget http://ftp.indexdata.dk/pub/metaproxy/metaproxy-1.3.36.tar.gz
- tar -zxvf metaproxy-1.3.36.tar.gz
- cd metaproxy-1.3.36
- ./configure –prefix=/opt/local –with-yazpp=/opt/local/bin/
- make
- make install
- cd /opt/local
- mkdir etc; mkdir etc/metaproxy; mkdir etc/sysconfig
- Copy this gist as /etc/rc.d/init.d/metaproxy
- chmod 744 /etc/rc.d/init.d/metaproxy
- Copy this gist as /opt/local/etc/sysconfig/metaproxy
- chkconfig –add /etc/rc.d/init.d/metaproxy
- /etc/init.d/metaproxy start