[S] Re: your mail

Prof Brian D Ripley (ripley@stats.ox.ac.uk)
Fri, 22 May 1998 07:42:11 +0100 (BST)

On Thu, 21 May 1998, Fei Chen wrote:

> hi all,
> i just downloaded from statlib code from Venables & Ripley (1994/7)
> `Modern Applied Statistics with S-Plus'. however, upon installation,
> ./INS , i encountered the following error:
> --compiling
> targets= MASS.o
> make -f /local/apps/splus/newfun/lib/S_makefile MASS.o
> acc -c -I${SHOME-`Splus SHOME`}/include -Xs -O2 MASS.c
> /bin/sh: acc: not found
> make: *** [MASS.o] Error 1
> mv: MASS.o: Cannot access: No such file or directory
> i don't have acc, is this a compiler i'm supposed to have on my machine?
> i'm running S+3.4 on a sparc20 under Sunos4.1.3
> thanks for any help,
> fei

The intro message to S-news does ask that advice about third-party addons
is sent to their authors in the first instance.

In this case the answer is that, yes, under SunOS4 you do need acc to
use the compilation facilities of Splus COMPILE in S-Plus 3.4. And this
is mentioned explicitly in the Install file!

Without acc you have three workarounds.

1) If you have gcc you could use that. As far as I recall if you link
gcc to acc in a directory on your path this will then work.

2) If you have gcc and can alter the S-Plus account, you can edit the
makefile SHOME/newfun/lib/S_makefile to a suitable call to gcc.
Under S-PLUS 3.3, you need gcc -munaligned-doubles.

3) If you have only the bundled cc, you can link acc to cc _and_
copy over the files in our KandR directory as described in the Install

As a more general comment, the S-PLUS 3.4 for Unix supplement has (p.10)
a list of the compatible compiler versions. You can use others, but
may well find problems with compiled code. So if reporting problems,
please check your compiler version.

Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

----------------------------------------------------------------------- This message was distributed by s-news@wubios.wustl.edu. To unsubscribe send e-mail to s-news-request@wubios.wustl.edu with the BODY of the message: unsubscribe s-news