[R-sig-ME] Problem with library(lme4a)
Ben Bolker
bbolker at gmail.com
Sun Jul 10 04:26:29 CEST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hmmm.
I believe the key is
Library not loaded: /usr/local/lib/libgfortran.2.dylib
I think this is happening because I had Xcode installed on my machine,
which includes a copy of libfortran.2.dylib in /usr/local/lib, on it
when I built the binary, so that's where R is looking for it. R
installs its own version in
/Library/Frameworks/R.framework/Versions/2.13/Resources/lib/ , but
that's not where it's being told to look.
Possible solutions:
* see if the binary version on R-forge happens to be working right now
(install.packages(...,repos="http://r-forge.r-project.org"))
* wait for me to figure out how to build a version that looks in the
right place and put it up on the specialized lme4 repository
* install Xcode (at which point you should also be able to build your
own version from source ... ?)
* open a terminal window and
(1) locate libfortran.2.dylib
[confirm that the library is where I think it is]
(2) cd /usr/local/lib
(3) sudo ln -s
/Library/Frameworks/R.framework/Versions/2.13/Resources/lib/libgfortran.2.dylib
On 11-07-12 05:37 PM, zlistserv at gmail.com wrote:
> I'm trying to use lme4a but the library will not load on my Macintosh. I'd appreciate any advice about how to make this work.
>
> Thanks,
>
>
> R> install.packages("lme4a",repos="http://lme4.r-forge.r-project.org/repos")
> Warning: dependencies ‘minqa’, ‘MatrixModels’ are not available
> trying URL 'http://lme4.r-forge.r-project.org/repos/bin/macosx/leopard/contrib/2.13/lme4a_0.999375-65.tgz'
> Content type 'application/x-gzip' length 1614159 bytes (1.5 Mb)
> opened URL
> ==================================================
> downloaded 1.5 Mb
>
>
> The downloaded packages are in
> /var/folders/LS/LStjA81JFEGCAHYOkVFg9++++TM/-Tmp-//RtmpEMKs1i/downloaded_packages
>
>
> R> install.packages("minqa")
> trying URL 'http://software.rc.fas.harvard.edu/mirrors/R/bin/macosx/leopard/contrib/2.13/minqa_1.1.15.tgz'
> Content type 'application/x-gzip' length 950183 bytes (927 Kb)
> opened URL
> ==================================================
> downloaded 927 Kb
>
>
> The downloaded packages are in
> /var/folders/LS/LStjA81JFEGCAHYOkVFg9++++TM/-Tmp-//RtmpEMKs1i/downloaded_packages
>
>
> R> install.packages("MatrixModels")
> trying URL 'http://software.rc.fas.harvard.edu/mirrors/R/bin/macosx/leopard/contrib/2.13/MatrixModels_0.2-1.tgz'
> Content type 'application/x-gzip' length 152736 bytes (149 Kb)
> opened URL
> ==================================================
> downloaded 149 Kb
>
>
> The downloaded packages are in
> /var/folders/LS/LStjA81JFEGCAHYOkVFg9++++TM/-Tmp-//RtmpEMKs1i/downloaded_packages
>
>
> R> library(lme4a)
> Loading required package: minqa
> Loading required package: Rcpp
> Loading required package: MatrixModels
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
> unable to load shared object '/Library/Frameworks/R.framework/Versions/2.13/Resources/library/lme4a/libs/x86_64/lme4a.so':
> dlopen(/Library/Frameworks/R.framework/Versions/2.13/Resources/library/lme4a/libs/x86_64/lme4a.so, 6): Library not loaded: /usr/local/lib/libgfortran.2.dylib
> Referenced from: /Library/Frameworks/R.framework/Versions/2.13/Resources/library/lme4a/libs/x86_64/lme4a.so
> Reason: image not found
> Error: package/namespace load failed for 'lme4a'
>
>
> R> sessionInfo()
> R version 2.13.1 (2011-07-08)
> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
>
> locale:
> [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
>
> attached base packages:
> [1] datasets splines utils grDevices graphics stats methods base
>
> other attached packages:
> [1] MatrixModels_0.2-1 minqa_1.1.15 Rcpp_0.9.4 zUtil_0.08 xtable_1.5-6 multcomp_1.2-5
> [7] mvtnorm_0.9-96 lme4_0.999375-39 Matrix_0.999375-50 lattice_0.19-30 Hmisc_3.8-3 foreign_0.8-44
> [13] car_2.0-10 survival_2.36-9 nnet_7.3-1 MASS_7.3-13
>
> loaded via a namespace (and not attached):
> [1] cluster_1.14.0 grid_2.13.1 nlme_3.1-101 stats4_2.13.1 tools_2.13.1
>
> _______________________________________________
> R-sig-mixed-models at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk4ZDdUACgkQc5UpGjwzenMLagCggRinUfhnQrXvk9tMAXs8FPU1
lFwAn3BH1aXT7Ry2CD7g31V0IvVoAE/B
=MuN9
-----END PGP SIGNATURE-----
More information about the R-sig-mixed-models
mailing list