Compilation and installation of RTS2 on openSuSE 11.x

From ObsVermes
Jump to: navigation, search

Prerequisites

Get the packages

  1. libnova (mandatory) configure switch --without-libnova has no effect.
  2. cfitsio (mandatory) configure switch --without-cfitsio has no effect.
  3. xorg-x11-devel (mandatory)
  4. docbook_5, docbook5-xsl-stylesheets, libxslt (mandatory)
  5. wcstools-3.8.3.tar.gz and install it as described in rts-2/INSTALL
  6. FLI Software Development Kit (Version 1.71)
  7. JPEG development and library
  8. GraphicsMagick, GraphicsMagick-devel

The FLI library is only needed in case one uses equipment from FLI. The XSL related package is found on the installation medium.


FLI Software Development Kit (Version 1.71)

In File libfli.c comment out on line 60

/*#define SHOWFUNCTIONS*/

In file unix/linux/libfli-usb-sys.c on line 53

//#include <linux/usb_ch9.h>
#include <linux/usb/ch9.h>


In file unix/linux/libfli-parport.c define HZ before line 77

#define HZ 1
 wto = cam->writeto / 1000 * HZ;

In file fliusb/libfli/takepic/Makefile add on the lines

INC     = .. $(HOME)/templates /usr/local/include/libpng /usr/pkg/include $(HOME)/FITSIO/
LIBPATH = .. /usr/local/lib /usr/pkg/lib /home/wildi/FITSIO/cfitsio

FITSIO

Unpack and compile it.

Checkout

svn co https://rts-2.svn.sf.net/svnroot/rts-2/trunk/rts-2  rts-2

WCStools

Unpack and compile it and add a link in the directory wcstools-3.7.2 and copy it to /usr/local/lib/ and /usr/local/include/libwcs.

Edit manually

lukalix

./configure --without-wcs --with-cfitsio=/home/wildi/cfitsio --with-libnova --without-pgsql

miyo

add -fPIC to the wcstools' MakefileS
./configure  --with-wcs=/home/wildi/wcstools-3.8.5    --with-fli=/home/wildi/fliusb/libfli/ --with-cfitsio=/home/wildi/cfitsio  --with-libnova

obsvermes.org

./configure --without-wcs --with-cfitsio=/home/wildi/cfitsio --with-libnova --without-pgsql

linux-be8d

./configure --with-fli=/home/wildi/fliusb/libfli/ --with-cfitsio=/home/wildi/cfitsio/

nausikaa

./configure --with-fli=/home/wildi/fliusb/libfli/ --with-cfitsio=/home/wildi/cfitsio/

penelope

./configure --without-wcs --with-cfitsio --with-libnova --with-fli=/home/wildi/fliusb/libfli/

astro

./configure --with-wcs=/home/wildi/wcstools-3.8.4  --with-cfitsio=/home/wildi/cfitsio --with-libnova --with-sbig=/home/wildi/SBIG/rts2

obs, haus, djupvik

./configure --without-wcs --with-cfitsio --with-libnova --without-pgsql

evo-bumbus

./configure --without-wcs  --with-libnova=/home/wildi/libnova-0.15.0   --with-fli=/home/wildi/fliusb/libfli/ --with-cfitsio=/home/wildi/cfitsio/

Configuration of the Postgres database

If you receive this or similar error message during configuration of the database

ERROR:  incompatible library "/usr/lib64/postgresql/pg_wcs.so": missing magic block

read 34.9.1. Dynamic Loading.

Access

File ~/data/pg_hba.conf

# "local" is for Unix domain socket connections only
local   all         all                              trust
# IPv4 local connections:
host    all         all         127.0.0.1/32         trust
# IPv6 local connections:
host    all         all         ::1/128              trust


After a change reload DB

pg_ctl reload  -D /var/lib/pgsql/data/

See although Setting up a postgres database for rts2

SOAP related issues

SOAP has been removed from RTS2.

Update from an earlier version

RTS2

autoconf
automake
./config.status --recheck
./config.status
make clean && make
make install

autoconf && automake && ./config.status --recheck && ./config.status && make clean && make && make install Make sure that no rts2 related process is running (e.g. rts2-centrald) before installing.

Postgres DB

Check ./src/sql/update for new scripts and the

cd src/sql/update/
su
su postgres
psql -h 127.0.0.1 --password ov <rel_0_8_1.sql
...

Use password of user obs.

Postgres DB Update

If the postgres itself is updated recompile RTS2 and install it (see /usr/lib64/pg_*).

SOFA Library

apt install liberfa-dev

wget http://www.iausofa.org/2016_0503_C/sofa_c-20160503_c.tar.gz
cd ./sofa/20160503_c/c/src
emacs makefile
 # change to:
 CFLAGF =  -g3 -fpic  -c -pedantic -Wall -W -O
 make
 gcc -shared -o libsofa_c.so  *.o
 cp  libsofa_c.so /usr/local/lib
 cd /usr/local/lib
 ln -s ./libsofa_c.so ./liberfa_c.so #may not necessary
 cp sofa.h /usr/local/include
 ln -s ./sofa.h ./erfa.h
 cp sofam.h /usr/local/include
 export ERFA_LIBS=/usr/local/lib/liberfa_c.so
 ./configure --with-fli=/home/wildi/fliusb/libfli/

Validate config files

xmllint file://`pwd`/events.xsd events.miyo

BOOTES-2

SExtractor

sudo apt-get install fftw3 fftw3-dev pkg-config
sudo apt-get install libatlas-base-dev libatlas-dev libatlas3gf-base
./configure --disable-threads --with-atlas-incdir=/usr/include/atlas


rts2af

http://hea-www.harvard.edu/RD/ds9/pyds9/