[R-SIG-Mac] lme4 installation problems in Lion

Simon Urbanek simon.urbanek at r-project.org
Thu Oct 27 04:54:18 CEST 2011


On Oct 26, 2011, at 7:31 PM, John L. Woodard, Ph.D. wrote:

> Dear List,
>   I'm trying to install lme4 on a MacBook Air running Lion OSX 10.7.2.  I first used the command:
> install.packages("lme4", repos="http://R-Forge.R-project.org")
> 
> to download lme4.  Then when I tried to load the library, I got the following message:
>> library(lme4)
> Loading required package: Matrix
> Loading required package: lattice
> 
> Attaching package: 'Matrix'
> 
> The following object(s) are masked from 'package:base':
> 
>    det
> 
> Error in dyn.load(file, DLLpath = DLLpath, ...) : 
>  unable to load shared object '/Library/Frameworks/R.framework/Versions/2.13/Resources/library/lme4/libs/x86_64/lme4.so':
>  dlopen(/Library/Frameworks/R.framework/Versions/2.13/Resources/library/lme4/libs/x86_64/lme4.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/2.15/Resources/lib/libRlapack.dylib
>  Referenced from: /Library/Frameworks/R.framework/Versions/2.13/Resources/library/lme4/libs/x86_64/lme4.so
>  Reason: image not found
> In addition: Warning message:
> package 'lme4' was built under R version 2.15.0 
> Error: package/namespace load failed for 'lme4'
> 

As the message says, you (or R-Forge) have R version mismatch - you're using R 2.13.x with lme4 built for R 2.15.x. (R-devel).


> I did a little more reading in this group and then installed Xcode 4.2 from the App Store and tried to run gfortran-lion-5666-3.pkg.  Unfortunately, this gfortran version seems to want to play only with Xcode 4.1.  Is there an updated gfortran for Xcode 4.2?
> 

No, there is no difference.


> I would be grateful for any other suggestions for getting lme4 up and running.  Many thanks!
> 

Try simply
install.packages(c("lme4","Matrix"))

Cheers,
Simon


> Best regards,
> 
> John
> 
> 
> John L. Woodard, Ph.D.
> Associate Professor of Psychology
> Wayne State University
> 5057 Woodward Ave., 7th Floor
> Detroit, MI  48202
> 
> (313) 577-5838 (voice)
> (313) 577-7636 (fax)
> john.woodard@@wayne.edu
> 
> 
> 
> 
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> 



More information about the R-SIG-Mac mailing list