This document simply follows the instructions given in
http://www.lsc-group.phys.uwm.edu/LDR/doc/ldr.pdf.
Prepare user and place where LDR will reside
As root:
addgroup hanrobot
adduser --ingroup hanrobot hanrobot
mkdir -p /srv/LDR
chown hanrobot:hanrobot /srv/LDR
We also need to suply 32bit libraries for python:
aptitude install libc6-dev-i386 lib32z1 lib32stdc++6 lib32ncurses5 lib32z-dev libltdl3-dev libtool
Install LDR
As user hanrobot:
Install 32bit Python
We have Debian etch installed (AMD64) version but need the 32bit python binaries:
mkdir ~/build
cd ~/build
wget http://www.python.org/ftp/python/2.5.1/Python-2.5.1.tar.bz2
tar -jxf Python-2.5.1.tar.bz2
cd Python-2.5.1/
CC="gcc -m32" CXX="g++ -m32" ./configure --prefix=/srv/LDR/opt/python-32bit
make
make install
Now add the path in ~/.bashrc:
PATH=/srv/LDR/opt/python-32bit:$PATH
Install pacman
cd
wget -nd http://www.lsc-group.phys.uwm.edu/LDR/pacman-3.18.4.tar.gz
tar xzf pacman-3.18.4.tar.gz
cd pacman-3.18.4/
source setup.sh
Set-up environment
export LDR_LOCATION=/srv/LDR
cd $LDR_LOCATION
pacman -pretend-platform Fedora-4
pacman -get LDR:LDR-Environment.pacman
Mysql-setup
cd $LDR_LOCATION
pacman -get LDR:LDR-MySQL.pacman
source $LDR_LOCATION/setup.sh
cd $LDR_LOCATION/mysql-server
./bin/mysqld --defaults-file=./my.cnf &
This will take a few minutes to create the 50 GB database.
Create user and grant permissions. ROOTPW is the password for the root user, hanrobot is the local user and ROBOTPW is the password for the hanrobot user:
mysqladmin -u root password ROOTPW
mysql --user=root --password=ROOTPW
In this shell enter:
USE mysql;
GRANT ALL ON lrc1000.* TO hanrobot@localhost IDENTIFIED BY ROBOTPW;
GRANT ALL ON rli1000.* TO hanrobot@localhost IDENTIFIED BY ROBOTPW;
GRANT ALL ON LDRmetadata.* TO hanrobot@localhost IDENTIFIED BY ROBOTPW;
GRANT ALL ON LDRqueue.* TO hanrobot@localhost IDENTIFIED BY ROBOTPW;
GRANT FILE ON *.* TO hanrobot@localhost IDENTIFIED BY ROBOTPW;
QUIT;
Shutdown mysql
mysqladmin --user=root --password=ROOTPW shutdown
Install more modules
LDR-Python
cd $LDR_LOCATION
pacman -get LDR:LDR-Python.pacman
cd $LDR_LOCATION
source ./setup.sh
pacman -get LDR:LDR-MySQL-Python.pacman
ODBC
cd $LDR_LOCATION
source ./setup.sh
pacman -get LDR:LDR-MYODBC.pacman
Globus
cd $LDR_LOCATION
source setup.sh
pacman -get LDR:LDR-Globus.pacman