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@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to