Contents
You (or someone else) have checked out tempo2 from the CVS. This is the best way to get the latest/cutting edge version, and develop your own additions to the tempo2 code or via plugins.
For more information on tempo2 see: http://www.atnf.csiro.au/research/pulsar/tempo2/
This requires the gnu autotools. If you don't have or don't want to install autotools, we recommend you install the latest distributed release from http://www.atnf.csiro.au/research/pulsar/tempo2/ or use PSRSOFT to install tempo2: http://www.pulsarastronomy.net/wiki/Software/PSRSoft
Bootstrap the build system: $ ./bootstrap
setup the tempo2 runtime dir $ cp -r T2runtime /usr/share/tempo2/ $ setenv TEMPO2 /usr/share/tempo2/
Configure:
$ ./configure [[--prefix=/your/install/path]]
use --prefix to set the path you want to install the binaries and libraries
Make and install... $ make && make install
You will probably want to build the default plugins (plk, etc). Do this with: $ make plugins && make plugins-install
And you're done.
Tempo2 requires the following:
Plugins may have other requirements, notably PGPLOT.
The bootstrap command will create suitible makefiles for the default set of plugins. This is controled by the contents of the files in ./plugin/plugin_lists/
The easiest way to compile your own plugins is:
$ g++ {$CFLAGS} {$LDFLAGS} -fPIC -shared -o {$TEMPO2}/plugins/{$PLGNAME}{$LOGIN_ARCH}_plug.t2 {$SRCLIST}
where:
uname
(usualy Linux).For example, to compile a basic plugin called 'foo' on linux, you might do
$ g++ -I/usr/src/tempo2 -fPIC -shared -o $TEMPO2/plugins/foo_{$LOGIN_ARCH}_plug.t2 foo_plug.C
If your plugin has dependances that are already covered by the lists above, just add the name to the appropriate list, and name your plugin source file as:
name_plug.C
At the start of 2010, tempo2 moved over to an autotools based make system, replacing the old hand written makefiles. This may confuse some people!
Important notes:
Download pgplot from: http://www.astro.caltech.edu/~tjp/pgplot/
Or use PSRSOFT to manage the installation. http://www.pulsarastronomy.net/wiki/Software/PSRSoft
If you have pgplot installed, but it is not detected by the configure script, check:
Check that you are using the same build of gcc and gfortran (or whatever compiler you are using).
Note that on MacOSX there is often an issue where the default compiler is incompatible with gfortran. The gfortran compatible version is often called gcc-4 and gxx-4 or similar. Use this with: export CC=gcc-4 export CXX=g++-4
and reconfigure.