CASPER uses something callled a Shareable
Library to access the NAIF toolkit routines which are used for many CASPER
calculations. Compiled versions of this library are supplied with
CASPER for several different computer platforms. If you are using
a different platform, or encounter problems with this file, however, you
may need to obtain another file or recompile on your host computer.
-
Compiling the Shareable Library
The Fortran and C code used by CASPER needs to be compiled into shareable
libraries. This seems to be where most of the problems occur when using
CASPER, but there are two ways to avoid this step. The first is to use
the library from a previously installed version of CASPER. The second is
to download a pre-compiled shareable library from the CASPER web site.
-
Using a Library from a Previous CASPER Installation
This is simple.
-
Make sure you have sourced the new casper_setup and casper_personal_setup
files
-
Locate the previous CASPER installation and locate the directory that contains
the old library. It will be somewhere like:
/home/user_home/casper_1.2/casper/lib/spice_share.so
Copy that file to $CASPER_DIR/lib/spice_share.so
NOTE: If you are on an HP system, the file may be called spice_share.sl.
Please rename it to spice_share.so when copying it. This is so that
all the Unix OS's can use the same setup file easily!
And that's it! You can now skip to the next section about installing kernel
files.
Rebuilding the Shareable Library
If you don't wish to use either of the above options, but prefer to
make the library yourself, then you'll need to follow the steps below.
-
Make sure you have sourced the casper_setup file
-
move to the library source code directory
csh> cd $CASPER_DIR/lib/src
Locate the correct Makefile for your machine and copy it to the standard
Makefile name e.g.
csh> cp Makefile.HP Makefile
The next step will depend on the particular operating system you are using.
-
SunOS, Solaris and OSF Machines
-
You will first need to edit the Makefile and change the line
SPICE_DIR = /home/naif
to point to the top directory of the NAIF directory tree on your system.
-
Compile the shareable library ussing
csh> make
Due to the naming conventions used by HP machines for object code, there
is an extra step involved in creating the shareable library.
-
Edit the file HP_make_spice and change the line
cd /home/naif/toolkit/src/spicelib
to point to the same directory of the NAIF directory tree on your system.
This should normally mean just changing the /home to the location
of the NAIF directory on your system.
-
Execute the HP_make_spicelib command. This will compile a version of the
spicelib library with the +z option to give SunOS-like object file names.
The original NAIF distribution will be left intact.
csh> HP_make_spice
-
then compile the CASPER shareable library using
csh> make