Table of Contents
The install of the following packages is optionnal for the moment and will not affect the functioning of Raytrace if used through IDL.
Before installing Raytrace user can install the following packages:
cfitsio
CCFITS
wich can be downloaded at http://heasarc.nasa.gov/fitsio/fitsio.html
Change dir to a working area of your directory tree:
[me@mycomputer]$cd myworkdirectory
Checkout Raytrace out of the CVS dev area:
[me@mycomputer]$cvs co dev/Raytrace[me@mycomputer]$cd dev/Raytrace
Generate make files, configure and compile:
[me@mycomputer]$aclocal[me@mycomputer]$autoconf[me@mycomputer]$automake -a[me@mycomputer]$./configure[me@mycomputer]$make
Test if compilation was successfull doing:
[me@mycomputer]$make check... Perfect ! PASS: raytrace ================== All 1 tests passed ================== ...[me@mycomputer]$
Optionally, you can install the software. The default installation path is /usr/local. It can be changed by setting --prefix=PATH when calling ./configure.
[me@mycomputer]$make install
![]() | Important |
|---|---|
Note that the shared object library |
Change dir to where you usually put your IDL procedures:
[me@mycomputer]$cd myIDLdirectory
Checkout rtidlpro and arnaudutil packages from CVS
[me@mycomputer]$cvs co dev/rtwl[me@mycomputer]$cvs co dev/arnaudutil
Go to the lib subdirectory of rtwl.
[me@mycomputer]$cd dev/rtwl/lib
Copy the libraytrace.so file or make a symbolic link to it, assuming that PATH2SO in the example is set to the location of libraytrace.so
[me@mycomputer]$cp $PATH2SO/libraytrace.so .
or
[me@mycomputer]$ln -s $PATH2SO/libraytrace.so
Run IDL and execute rttest. If the test is successful the installation is done.
[me@mycomputer]$idl...IDL[mycomputer]>rttest... Test looks good !IDL[mycomputer]>
The install follows the classical Unix/Linux install steps: ./configure, make, make install.
Download the tarball package: [CREATE A LINK HERE]
Expand the package and move the the created directory:
[me@mycomputer]$tar -xzf scor-0.1.tar.gz[me@mycomputer]$cd scor-0.1
Configure:
[me@mycomputer]$./configure
Use --help to list the ./configure options. Note that is the some libraries are not located in the standard linux path, you can use the following flags: CPPFLAGS"=-I/non/standard/dir/include -L/non/standard/dir/libs" and LDFLAGS=-L/non/standard/dir/libs
Compile the sources:
[me@mycomputer]$make
Optionally check if the compiled programs and libraries work:
[me@mycomputer]$make check
Install the package:
[me@mycomputer]$make install