uncompress multical0.9.tar.ZThe file multical0.9.tar will be created when uncompress successfully terminates.
tar xf multical0.9.tarA directory multical0.9 will be created in root/.
rm multical0.9.tar
cd multical0.9This directory contains a file named Makefile and one named Makefile.include, as well as other files and directories. Examine the file NOTES; this discusses important details on the release not covered by the installation instructions. Also examine the file README.
|
TOPDIR=/usr/rts/...You should edit this line to point to the current directory, e.g.,
TOPDIR=/usr/me/multical0.9Another important customization is to edit the line
ARCHVAR=sparcto match the architecture of your system. To specify different paths or options for the UNIX utilities edit the following lines in Makefile.include. Please check the following variables very carefully, because they are used extensively in the installation. Every site will most likely have to change at least some of these variables. For gcc compilers below version 2.0, support for long longs is a ``hidden feature.'' Multical may be compiled (or maybe not!) with such versions but it will probably be necessary to include a macro definition, e.g.,
CC=gcc -Dalloca=malloc |
CHMOD=/bin/chmod |
CHOWN=/etc/chown bin |
CHGRP=/bin/chgrp multical |
LD=ld |
AR=/bin/ar ru |
CAT=/bin/cat |
CD=cd |
CC=gcc |
CP=/bin/cp |
FIND=/usr/bin/find |
LINT=/usr/bin/lint |
MAKE=/bin/make |
MKDIR=/bin/mkdir |
MV=/bin/mv |
PC=/usr/lang/pc |
RANLIB=/usr/bin/ranlib |
RM=/bin/rm |
RMDIR=/bin/rmdir |
SED=/bin/sed |
SHELL=/bin/sh |
STRIP=/bin/strip |
TOUCH=/bin/touch -c |
#OURLEX=/usr/bin/lex |
#OURYACC=/usr/local/bison -d -v |
#IDLC=/usr/local/scorpion/bin/idlc |
UMASK=umask |
LN=ln |
CSHELL=/usr/bin/csh |
LPR=lpr
|
If some paths are unknown, the appropriate path for each utility can be determined by executing
bin/wherearethey
If any of the above is not needed or cannot be used set it to $(NOOP), a command that does nothing. As an example, if you don't want to change the privileges, edit the CHMOD variable to:
CHMOD=$(NOOP)
The entire system may be built in OPTIMIZE or DEBUG mode. The HOWTOCOMPILE variable may be modified as needed. In DEBUG mode additional symbol table information is stored for each tool in the system. This requires extra disk space and main memory, but allows the tools to be debugged later. Currently, this variable is set to optimize mode.
HOWTOCOMPILE=OPTIMIZE
At this point, Makefile.include has been customized.
make testpath
If any serious errors occur, recheck the paths before continuing. This step may be repeated as needed.
make install >& make.all.log &
Throughout the installation, a very few minor warning messages will appear, and can be ignored. However, any error generated by make, indicating a failed make command, are significant, and should be addressed. If any such errors are encountered, the step containing the error or make install can usually be redone after correcting the error, as many times as necessary. After the installation is complete, if any programs or libraries need to be recompiled, consult the individual Makefile for the proper target to use in the make command.
make checkoutYou should see a message indicating that successfully ran.
make printdocsIf your printer programs differ substantially from the default ones, you may need to edit Makefile.include to customize the print commands.
cd prototype/test
../bin/multical -v example.sql
../bin/multical -v example.bad