[R-SIG-Mac] Latest version of lme4

Douglas Bates dmbates at gmail.com
Tue Aug 16 15:36:50 CEST 2005


On 8/15/05, John Maindonald <john.maindonald at anu.edu.au> wrote:
> I've been unable to install the latest version of Matrix (0.98-3), and
> therefore lme4. As CRAN has no Mac binary more recent than 0.97-2, is
> this an indication that such an installation will require a modest
> amount of work?
> 
> The error message is:
> ------------------------------------------------------------------------
> -------------------------------------------------------------
> trying URL 'http://cran.au.r-project.org/bin/macosx/2.1/PACKAGES'
> Content type 'text/plain' length 27756 bytes
> opened URL
> ==================================================
> downloaded 27Kb
> 
> trying URL
> 'http://cran.au.r-project.org/src/contrib/Matrix_0.98-3.tar.gz'
> Content type 'application/octet-stream' length 626712 bytes
> opened URL
> ==================================================
> downloaded 612Kb
> 
> * Installing *source* package 'Matrix' ...
> ** libs
> gcc-3.3 -no-cpp-precomp
> -I/Library/Frameworks/R.framework/Resources/include
> -I/usr/local/include  -I./Metis -fno-common  -g -O2 -c HBMM.c -o HBMM.o
> In file included from HBMM.c:2:
> iohb.h:6:19: malloc.h: No such file or directory
> make:
> The downloaded packages are in
>         /private/tmp/RtmpnCA6Nu/downloaded_packages
> ** Removing
> '/Library/Frameworks/R.framework/Versions/2.1.1/Resources/library/
> Matrix'
> ** Restoring previous
> '/Library/Frameworks/R.framework/Versions/2.1.1/Resources/library/
> Matrix'
> *** [HBMM.o] Error 1
> ERROR: compilation failed for package 'Matrix'

I added two external utilities Matrix/src/iohb.[ch] and
Matrix/src/mmio.[ch] in 0.98-3 without checking the compilation on
different systems.  They both use

#include <malloc.h>

which has been replaced by

#include <stdlib.h>

on recent POSIX systems.  The simple fix is to make that substitution
in the sources.  I will be uploading a new source release of the
Matrix package later today.



More information about the R-SIG-Mac mailing list