[R] Mac OS X and R

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Jan 22 02:00:19 CET 2004


malloc.h can normally be replaced by stdlib.h on an ISO C system.  That 
file has

#include <stdio.h>
#ifndef Macintosh
#include <malloc.h>
#endif

and I believe that should be

#include <stdlib.h>
#include <stdio.h>

since the aim appears to be to have malloc() declared.

Martin M (as Maintainer) please note.


On Wed, 21 Jan 2004, David Firth wrote:

> I can confirm that wavethresh doesn't install under (my) Mac OS 10.2.8:
> 
>  > install.packages("wavethresh")
> ...(snip)...
> * Installing *source* package 'wavethresh' ...
> ** libs
> gcc -no-cpp-precomp -I/usr/local/lib/R/include  -I/sw/include   
> -fno-common  -g -O2 -c ImageDecomposeStep.c -o ImageDecomposeStep.o
> ImageDecomposeStep.c:24:20: malloc.h: No such file or directory
> make: *** [ImageDecomposeStep.o] Error 1
> ERROR: compilation failed for package 'wavethresh'
> 
> I use various other R packages (with C/Fortran source code) without 
> problem.
> 
> David


-- 
Brian D. Ripley,                  ripley at 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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list