Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/hst/observatory/crds/documents/install.pdf
Дата изменения: Unknown
Дата индексирования: Sun Mar 2 04:55:50 2014
Кодировка:

Поисковые слова: п п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п
NEWCDBS Installation Instructions Bernie Simon July 25, 1996
Installation of the NEWCDBS package starts with retrieving the tar le and unpacking it. You must have completed this step successfully, or else you wouldn't be reading this le. The package links with the STSDAS and IRAF libraries, so you must rst determine if these libraries are present. The standard places to look for these libraries on Unix and VMS systems are: Library Cinterface Tables Images IRAF system Vector OS interface File /usr/stsci/stsdasx/lib/libcvos.a /usr/stsci/tablesx/lib/libtbtables.a /usr/stsci/irafx/lib/libex.a /usr/stsci/irafx/lib/libsys.a /usr/stsci/irafx/lib/libvops.a /usr/stsci/irafx/unix/hlib/libos.a Figure 1: Unix Libraries Library Cinterface Tables Images IRAF system Vector OS interface File stsdasdisk:stsdasx.lib]libcvos.a stsdasdisk:tablesx.lib]libtbtables.a irafdisk:irafx.lib]libex.a irafdisk:irafx.lib]libsys.a irafdisk:irafx.lib]libvops.a irafdisk:irafx.vms.hlib]libos.a

Figure 2: VMS Libraries If these libraries are not present on your system, you will have to ask the STSDAS system administrator (Ray Williamson) to install them. If they are present, but in a nonstandard place, you will have to edit the make les. There are three macros, de ned in the le system.h, which may need to be modi ed on your system after installation. This le is locate in the include subdirectory under the top level directory. The tasks in this package twodata les, CATALOG NAME and DIRECTORY NAME. Generally, only the directory portions of these two le names will need to be changed. The standard location for both


is in the data subdirectory under the top level directory. The certify task expects the template les to be in the same directory as the catalog le (named by CATALOG NAME). The third macro whichmay need to be modi ed in system.h is CDBSDIR. This macro speci es the top level directory for the cdbs reference les and should have the same value as crrefer does within the iraf environment. There are di erent make les for eachcombination of hardware and operating system the package must compile under. The extension of the make le indicates which system it is meant for. The supported systems are Sun Solaris (.ssun), Sun SunOS (.sparc), VAX VMS (.vax), and Alpha VMS (.alpha). Since the name of the make le is nonstandard, the make command must be run with the appropriate ag. For example, the command
make -f makefile.ssun

runs the Solaris version of the make le and the command
mms /descrip=makefile.vax

runs the Vax version. The top level make le for the package can be found in the src subdirectory. It will compile and link all the libraries and tasks by calling their individual make les recursively. Alternatively,you can run the make le in the library or task directly if you do not want to update the whole system. The individual library and task make les contain a user con gurable set of macros at the top. These macros control the compiler used and the compilation ags, the location and name of the executable, and the library locations. Here is an example from one of the make les:
# Name of compiler and compilation flags CC = /usr/lang/acc INC = -I../../include -I/usr/stsci/stsdasx/lib CFLAGS = -g $(INC) # Location and name of executable and libraries BIN = ../../bin LIBDIR = ../../lib EXEC = $(BIN)/certify LIB = $(LIBDIR)/certify.a

You should update the appropriate macro to change the defaults. The executables are stored in the bin subdirectory. Under Unix, these executables can be made available by adding this directory to your path. This can 2


be done by adding lines like the following to your

.login

or

.cshrc

le.

setenv CDBSDIR /data/lilac1/bsimon/iraf/newcdbs set path=($CDBSDIR/bin $path)

The environmentvariable CDBSDIR is installation dependent and must be changed according to where you have installed CDBS. On VMS systems, the executables must be de ned as symbols. A DCL command le which de ne these symbols can be found in the util subdirectory as defines.com. The symbols use the logical CDBSDIR, which de nes the top level CDBS directory. This logical is installation also dependent, as in the Unix case. The tasks which access the CDBS database use twoenvironmentvariables, CDBS SERVER and CDBS DB. These de ne the name of the database server and database, respectively, and should be set to the database you are using. The les defines.* in the util subdirectory contain these de nitions for the di erent operating systems and should be modi ed according to where the CDBS code and database are installed. Sourcing one of these les will make the proper de nitions. Here is an example of the csh de ne le.
# The definition of cdbsdir is installation dependent setenv CDBSDIR /data/lilac1/bsimon/iraf/newcdbs/ setenv CDBS_SERVER ROBBIE setenv CDBS_DB cdbs_dev

The directory test/script contains Unix shell test scripts for the CDBS tasks. These scripts expect the logical CDBSDIR to be de ned, so the scripts can nd the test data directory. This environmentvariable de nes the top level CDBS directory and is de ned by the de ne les mentioned above.

3