Overview

  1. Install CentOS
  2. Install TwiceAsNice
  3. Install ARGOS instrument control software

Install CentOS

  1. Instructions to install CentOS from USB memory sticks
  2. Supported version: CentOS 6
  3. Tested platforms: i386 and x64
  4. GCC version: 4.4
  5. Home page: http://www.centos.org/
  6. Disable the firewall with system-config-securitylevel (CentOS 5) and system-config-firewall (CentOS 6).
  7. Installing EPEL repository EPEL repo contains useful packages like cfitsio and pyfits.
  8. NTP client configuration
  9. NTP server installation
  10. NFS client/server configuration

Install TwiceAsNice

  1. Official site for the TwiceAsNice dependencies: https://svn.mpia.de/trac/gulli/TwiceAsNice/wiki/Tan/GettingStarted
  2. Gcc 4.1.2
    1. If make check fails, a different version of gcc might work
  3. Boost version: 1.37
  4. Qt in version 4.6 or higher is required
  5. libCurl version 4 or higher is required.
  6. In order to see debug messages, set the preprocessor variable DEBUG, e.g. -DDEBUG
  7. Default gateway: In order to run any TwiceAsNice software, the operating system must know a default gateway for network communication. If a default gateway is missing in the routing table, any basda service will refuse to start and print out a strange error message.

Florian's Yum Repository

Florian ( briegel@mpia.de) maintains a yum repository with packages for Cent OS 5. He described the usage in an e-mail at 2010-10-17:

Just download this to /etc/yum.repos.d

  http://www.mpia.de/~GULLI/repository/linux/cent/5/mpia.repo

Afterwards you have to install this:

 yum install boost-devel qt46-devel qwt46-devel cfitsio

on 64 bit you should add x86_64 otherwise it will install both 32 & 64 bit 
versions, what a stupid system.

 yum install boost-devel.x86_64 qt46-devel.x86_64 qwt46-devel.x86_64 
cfitsio.x86_64

The .RPM files are online available: https://svn.mpia.de/gulli/Packages/rpm/cent/5/RPMS/

Installation Steps

TwiceAsNice depends on many third-party software packages. Therefore, the compiliation of TwiceAsNice is no straight-forward task. For this case, this section describes some workarounds.

Installation In Theory

Normally, the following steps are necessary:

svn co https://svn.mpia.de/gulli/TwiceAsNice/branch/unstable/TwiceAsNice
cd TwiceAsNice/nice
make -f Makefile.cvs
./configure --prefix=$INSROOT
make && make check && make install

cd ../basda
make -f Makefile.cvs
./configure --prefix=$INSROOT
make && make check && make install

cd ../basda-io
make -f Makefile.cvs
./configure --prefix=$INSROOT
make && make check && make install

cd ../basda-misda
make -f Makefile.cvs
./configure --prefix=$INSROOT
make && make check && make install

cd ../basda-mocca
make -f Makefile.cvs
./configure --prefix=$INSROOT
make && make check &&  make install

cd ../basda-tempo
make -f Makefile.cvs
./configure --prefix=$INSROOT
make && make check && make install

cd ../basda-vino
make -f Makefile.cvs
./configure --prefix=$INSROOT
make && make check && make install

Make Speed-up

You can speed up the make runs by allowing make to run several jobs simulataneously. In this case, use the option -j <#jobs>. For example,

$ make -j 5

Warning: At the moment (2012-02-09) the following packages show build problems when using simultaneous jobs:
  • basda
  • basda-vino
  • basda-mocca

Real-world Installation

g++

TaN requires a recent version of g++. If default installed g++ fails to build TaN including the tests, try another g++. For example, to use g++ in version 4.4, use the following recipe in CentOS 5.7:

yum install gcc44 gcc44-c++  libstdc++44-devel

export CC=gcc44
export CXX=g++44

Qt

When there is an useless version of Qt alread installed (i.e Qt < 4.6), install Qt in the right version and set the following environment variable.

For 32 bit OS:

export LD_LIBRARY_PATH=/usr/lib/qt46/lib:$LD_LIBRARY_PATH

For 64 bit OS:

export LD_LIBRARY_PATH=/usr/lib64/qt46/lib64:$LD_LIBRARY_PATH

ICE

For TwiceAsNice -unstable (rev. 5075) and Ice-3.4.1, the following workaround is necessary:

./configure --prefix=$INSROOT --with-Ice-slice-dir=/usr/share/Ice-3.4.1/slice

ARGOS Instrument Control Software

The README is available in /trunk/README

 git clone https://github.com/LBTO/argos.git 
cd argos
<Follow instructions in README>

MPE Starter Script

The directory /trunk/starters/mpe/ contains the MPE specific starters. The installation looks like this:

trunk/starters/mpe$ make copy_install
Topic revision: r2 - 14 Aug 2018, AndrewColson
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback