[R-SIG-Mac] Cannot install lme4 on Snow Leopard
Yan Zhou
zhouyan1014 at gmail.com
Sun Jun 13 20:45:16 CEST 2010
Did you install the gfortran from the Tools webpage of R for mac os x developer page,
http://r.research.att.com/tools/
If not, install gfortran-42-5659.pkg first.
On Jun 13, 2010, at 7:39 PM, Heidi Bissell wrote:
> I am trying to install the lme4 package on a MBP, running the latest
> versions of Snow Leopard (10.6.3), Xcode (3.2) and R(2.11.1) using the R-GUI
> (1.34).
>
> First, lme4 is no longer listed in the cran library. Second, if I manually
> install it (see below), I get an error message about -lgfortran library not
> being found.
>
> Can anyone point me towards a solution so that I can install arm, which
> needs lme4?
>
> Thank you,
>
> Heidi
>
>
>> install.packages('lme4', type='source')
> trying URL 'http://cran.mtu.edu/src/contrib/lme4_0.999375-33.tar.gz'
> Content type 'application/x-gzip' length 686621 bytes (670 Kb)
> opened URL
> ==================================================
> downloaded 670 Kb
>
> * 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
> ld: library not found for -lgfortran
> collect2: ld returned 1 exit status
> make: *** [lme4.so] Error 1
> ERROR: compilation failed for package ‘lme4’
> * removing
> ‘/Library/Frameworks/R.framework/Versions/2.11/Resources/library/lme4’
>
> The downloaded packages are in
> ‘/private/var/folders/tZ/tZHXTvpgGUufY4zQn460+++++TI/-Tmp-/RtmpIvE4Br/downloaded_packages’
> Updating HTML index of packages in '.Library'
> Warning message:
> In install.packages("lme4", type = "source") :
> installation of package 'lme4' had non-zero exit status
>>
>
>
> --
> Heidi Bissell 海迪
> Doctoral Candidate
> Department of Zoology
> University of Wisconsin-Madison
> https://mywebspace.wisc.edu/hbissell/web/
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
More information about the R-SIG-Mac
mailing list