[R-sig-ME] Failure to load lme4 on Mac

Daniel Myall daniel.lists at zeno.co.nz
Tue May 25 01:25:20 CEST 2010


Hi Sean,

On your Macbook do you have xcode installed? The error "sh: make: 
command not found" indicates that this is not the case.

The best place to get the latest xcode is http://connect.apple.com/ (The 
main Apple site sends you back and forward between two pages for the 
xcode download).

Here is the log when I build lme4 (R 2.11.0, Snow Leopard 10.6.3, xcode 
3.2.2):

* installing *source* package ‘lme4’ ...
** libs
** arch - i386
gcc -arch i386 -std=gnu99 
-I/Library/Frameworks/R.framework/Resources/include 
-I/Library/Frameworks/R.framework/Resources/include/i386 
-I/usr/local/include 
-I"/Library/Frameworks/R.framework/Versions/2.11/Resources/library/Matrix/include" 
-I"/Library/Frameworks/R.framework/Resources/library/stats/include" 
-fPIC -g -O2 -c init.c -o init.o
gcc -arch i386 -std=gnu99 
-I/Library/Frameworks/R.framework/Resources/include 
-I/Library/Frameworks/R.framework/Resources/include/i386 
-I/usr/local/include 
-I"/Library/Frameworks/R.framework/Versions/2.11/Resources/library/Matrix/include" 
-I"/Library/Frameworks/R.framework/Resources/library/stats/include" 
-fPIC -g -O2 -c lmer.c -o lmer.o
gcc -arch i386 -std=gnu99 
-I/Library/Frameworks/R.framework/Resources/include 
-I/Library/Frameworks/R.framework/Resources/include/i386 
-I/usr/local/include 
-I"/Library/Frameworks/R.framework/Versions/2.11/Resources/library/Matrix/include" 
-I"/Library/Frameworks/R.framework/Resources/library/stats/include" 
-fPIC -g -O2 -c local_stubs.c -o local_stubs.o
gcc -arch i386 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names 
-undefined dynamic_lookup -single_module -multiply_defined suppress 
-L/usr/local/lib -o lme4.so init.o lmer.o local_stubs.o 
-L/Library/Frameworks/R.framework/Resources/lib/i386 -lRlapack 
-L/Library/Frameworks/R.framework/Resources/lib/i386 -lRblas -lgfortran 
-F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework 
-Wl,CoreFoundation
installing to 
/Library/Frameworks/R.framework/Versions/2.11/Resources/library/lme4/libs/i386
** arch - x86_64
gcc -arch x86_64 -std=gnu99 
-I/Library/Frameworks/R.framework/Resources/include 
-I/Library/Frameworks/R.framework/Resources/include/x86_64 
-I/usr/local/include 
-I"/Library/Frameworks/R.framework/Versions/2.11/Resources/library/Matrix/include" 
-I"/Library/Frameworks/R.framework/Resources/library/stats/include" 
-fPIC -g -O2 -c init.c -o init.o
gcc -arch x86_64 -std=gnu99 
-I/Library/Frameworks/R.framework/Resources/include 
-I/Library/Frameworks/R.framework/Resources/include/x86_64 
-I/usr/local/include 
-I"/Library/Frameworks/R.framework/Versions/2.11/Resources/library/Matrix/include" 
-I"/Library/Frameworks/R.framework/Resources/library/stats/include" 
-fPIC -g -O2 -c lmer.c -o lmer.o
gcc -arch x86_64 -std=gnu99 
-I/Library/Frameworks/R.framework/Resources/include 
-I/Library/Frameworks/R.framework/Resources/include/x86_64 
-I/usr/local/include 
-I"/Library/Frameworks/R.framework/Versions/2.11/Resources/library/Matrix/include" 
-I"/Library/Frameworks/R.framework/Resources/library/stats/include" 
-fPIC -g -O2 -c local_stubs.c -o local_stubs.o
gcc -arch x86_64 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names 
-undefined dynamic_lookup -single_module -multiply_defined suppress 
-L/usr/local/lib -o lme4.so init.o lmer.o local_stubs.o 
-L/Library/Frameworks/R.framework/Resources/lib/x86_64 -lRlapack 
-L/Library/Frameworks/R.framework/Resources/lib/x86_64 -lRblas 
-lgfortran -F/Library/Frameworks/R.framework/.. -framework R 
-Wl,-framework -Wl,CoreFoundation
installing to 
/Library/Frameworks/R.framework/Versions/2.11/Resources/library/lme4/libs/x86_64
** R
** data
** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Loading required package: lattice

Attaching package: 'Matrix'

The following object(s) are masked from 'package:base':

det

Creating a new generic function for "coef" in "lme4"
Creating a new generic function for "confint" in "lme4"
Creating a new generic function for "plot" in "lme4"
Creating a new generic function for "formula" in "lme4"
Creating a new generic function for "fixef" in "lme4"
Creating a new generic function for "ranef" in "lme4"
Creating a new generic function for "anova" in "lme4"
Creating a new generic function for "deviance" in "lme4"
Creating a new generic function for "fitted" in "lme4"
Creating a new generic function for "logLik" in "lme4"
Creating a new generic function for "predict" in "lme4"
Creating a new generic function for "residuals" in "lme4"
Creating a new generic function for "resid" in "lme4"
Creating a new generic function for "simulate" in "lme4"
Creating a new generic function for "model.frame" in "lme4"
Creating a new generic function for "model.matrix" in "lme4"
Creating a new generic function for "terms" in "lme4"
Creating a new generic function for "vcov" in "lme4"
Restoring the implicit generic function for ‘with’ from package ‘base’
into package ‘lme4’; the generic differs from the default conversion 
(Signatures differ: (data, expr), (data))
Creating a new generic function for "with" in "lme4"
Creating a new generic function for "as.data.frame" in "lme4"
Creating a new generic function for "xyplot" in "lme4"
Creating a new generic function for "densityplot" in "lme4"
Creating a new generic function for "qqmath" in "lme4"
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded

* DONE (lme4)


On 25/05/10 11:00 AM, McMahon, Sean wrote:
> Hey,
> I've been able to work around the lack of a binary for mac snow leopard's (and lme4's) latest updates.  On a  Mac Pro, I was able to download the source package and install.  On my Mac Book, I cannot install lme4 on the latest R 2.11.0 at all.
>
> My status now is that I have no access to lme4 on my laptop for some reason, but cannot figure out what the problem is.
>
> Any help would be welcome,
>
> Sean
>
> This is from the mac GUI install through the source.  Obviously there is no binary at the CRAN site.
>
> * installing *source* package 'lme4' ...
> ** libs
> ** arch - i386
> sh: make: command not found
> ERROR: compilation failed for package 'lme4'
> * removing '/Library/Frameworks/R.framework/Versions/2.11/Resources/library/lme4'
> * restoring previous '/Library/Frameworks/R.framework/Versions/2.11/Resources/library/lme4'
>
> The downloaded packages are in
>      '/private/var/folders/Aa/AafdcUsp2RW66U+8ZMzUBU+++TI/-Tmp-/Rtmpds1XEs/downloaded_packages'
>
> _______________________________________________
> R-sig-mixed-models at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
>




More information about the R-sig-mixed-models mailing list