[net.math.stat] for aurora!susan

mikem@uwstat.UUCP (12/13/84)

TO    aurora!susan
I'm sorry to clutter the waves with this junk, but I'm leaving the
country and I could not repsond directly to this question.
(Susan, the mailer at hplabs doesn't like aurora).

Subject: S bug fixes.

Susan,

> 
>      You mentioned some necessary changes to S to make it work?  Would
The changes are at the end of this letter.
> 
>      You say the f77 compiler is causing problems.  Our S running 4.2
>      is way off in answers e-6 or smaller.  Comparing the "current" to
>      the "target"  answers from DOTEST, they differ in even the most
>      significant figure.  Is this a f77 problem?  If so, how can I,
This is normal. THese small numbers are just round-off error -- the
closer they are to zero the better.  It looks like your f77 may be
working.

Best wishes, --Mike Meyer

.uh "Additional Installation Steps for S under Berkeley Unix 4.2"
.pp
I found it necessary to make the following changes to the standard S
Installation Procedure in order to bring it up under Unix version 4.2.
.np
Make the version of yacc distributed with S (in ~s/src/yacc) 
You will need to change some of the directories mentioned in the file
.sp
~s/src/yacc/files
.sp
so that the paths represent the true location of the yacc source.
Now make m4 (in ~s/src/m4 ), but be sure that you use the new version of
yacc to build m4.
I found it most
convenient to create a directory, ~s/bin and install both yacc and m4
in this directory.  Of course you could always put them in ~s/cmd.
.np
Edit the ENVIRONMENT file so that:
.ba +5m
.ip (a)
OpSys = Berkeley
.ip (b)
insert a line of the form 
.sp
PATH=:$HOME/bin$PATH followed by 
.sp
export PATH
.sp
This is to ensure that the local version of m4 is found whenever
possible.
.ba -5m
.np
Edit the file $I/u/mach.m :
.ba +5m
.ip (a)
add a line containing
.sp
define(`SHOME',`/usr3/s')
.sp
where /usr3/s is replaced by wherever S's home directory is.  This
step should not be necessary, but I couldn't get anything to work
without it.
.ip (b)
change the reference to MAIN__ to be MAIN_ (I guess this is only if
you are using the 4.1 f77 compiler.  I think that if you have a good
version of the 4.2 f77 compiler you can ignore this step).
.ip (c)
Change the value associated with MAX_FILE_NAME_LENGTH to be 255 (not
14).  This is important as this variable is used as a flag to indicate
that unix version 4.2 is being run.  It is silly, but if you leave the
parameter at 14, then the compilation will crash when it tries to
compile the stuff to do with reading directories.
.ba -5m
.np
Add a line containing the word
.sp
blit
.sp
to the file $M/stop.list .  The source for the blit assumes that there
is a device driver available in some magic directory name.  
It probably works on all of one machine at Bell Labs.  Apparently
distributing the blit code was an oversight.
.np
Change the file cmd/makehead so that it finds where you put 
the correct m4, i.e.
.sp
M4=$${SHOME}/bin/m4
.np
You will need to change the file ~s/cmd/editor and remove a spurious :.  
My version of this file looks like;
.sp
${EDITOR-vi} $*
.sp
.pp
You should now be in a position to make S.  Hopefully everything will
compile. When all is done, you still have one more error to fix.
You need to comment out the fourth line in the the file ~s/S.  
The first few lines of my version of
this file look like;
.sp
.nf
SHOME=${SHOME-/usr3/s}
export SHOME
case $# in
0)#	if test  !-w .; then echo Cannot write in directory `pwd`; exit 1; fi
	if test ! -d swork
.sp
.fi
notice the # after the 0).
.sp
Good luck.  If you find any addtional changes, please send them to me
and I will update this installation guide.
.sp
Mike Meyer, Statistics, University of Wisconsin.


Mike Meyer --  Phone (608) 262-1157

EASY ARPA:	mikem@statistics
CORRECT ARPA:	mikem@wisc-stat.arpa
UUCP	...!{allegra,ihnp4,seismo,ucbvax,
	     pyr_chi,heurikon,uwm-evax}!uwvax!uwstat!mikem



-- 

Mike Meyer --  Phone (608) 262-1157

EASY ARPA:	mikem@statistics
CORRECT ARPA:	mikem@wisc-stat.arpa
UUCP	...!{allegra,ihnp4,seismo,ucbvax,
	     pyr_chi,heurikon,uwm-evax}!uwvax!uwstat!mikem