lme4
Again, I suspect that the problem is the lack of a Fortran compiler for Apple Silicon. What is the output of version in R? For example, mine looks like:
version
_ platform x86_64-pc-linux-gnu arch x86_64 os linux-gnu system x86_64, linux-gnu status major 4 minor 0.5 year 2021 month 03 day 31 svn rev 80133 language R version.string R version 4.0.5 (2021-03-31) nickname Shake and Throw
On 10/5/21 5:40 pm, emanuele favaron wrote:
Thank you very much for your answer. At the moment I reinstalled R on my
mac, and apparently the problem now is with the "statmod" package. I
tried?to install it also with tgz files, the installation succeeds?but
there's no package after that. Is there a way to avoid this problem?
Here the answer I get when I try to install "lme4" from GitHub.
Thanks again?
Emanuele
Error: Failed to install 'lme4' from GitHub:
? System command 'R' failed, exit status: 1, stdout + stderr:
E> * checking for file
?/private/var/folders/t2/gx44y9f5015gdcg8kth720gr0000gn/T/Rtmp3pHj9X/remotesf0a3ad15436/lme4-lme4-6a6d121/DESCRIPTION?
... OK
E> * preparing ?lme4?:
E> * checking DESCRIPTION meta-information ... OK
E> * cleaning src
E> * installing the package to process help pages
E> ? ? ? -----------------------------------
E> ERROR: dependency ?statmod? is not available for package ?lme4?
E> * removing
?/private/var/folders/t2/gx44y9f5015gdcg8kth720gr0000gn/T/RtmpER6KCU/Rinstff01be45df1/lme4?
E> ? ? ? -----------------------------------
E> ERROR: package installation failed
In addition: Warning message:
In i.p(...) : installation of package ?statmod? had non-zero exit status
Thanks again?
Emanuele
On Mon, 10 May 2021 at 17:23, Phillip Alday <me at phillipalday.com
<mailto:me at phillipalday.com>> wrote:
Hi Emanuele,
It helps us a little bit if you tell us what the solutions you tried
actually were. We don't know what websites you looked at.
It looks like you're on the new Apple silicon. Unfortunately, Apple
there isn't a release of gfortran for that, which has created a lot of
problems for numerical and statistical computing. For now, I would
recommend running R for x86-64 via Rosetta.
Phillip
On 10/5/21 4:20 pm, emanuele favaron wrote:
> Good afternoon,
>
> I'm working on R studio Version 1.4.1625 in MacOs Big Sur 11.2.2.
> Trying to load library(lme4) I get this answer:
>
> Error: package or namespace load failed for ?lme4? in dyn.load(file,
> DLLpath = DLLpath, ...):
>? unable to load shared object
>
'/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/statmod/libs/statmod.so':
>
>
dlopen(/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/statmod/libs/statmod.so,
> 6): Library not loaded: /opt/R/arm64/gfortran/lib/libgfortran.5.dylib
>? ?Referenced from:
>
/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/statmod/libs/statmod.so
>? ?Reason: image not found
>
>
> I already tried all the possible solutions suggested in some
websites but
> they don't work. How can I solve this problem?
>
> Thanks in advance
> Emanuele
>
>? ? ? ?[[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-mixed-models at r-project.org
<mailto:R-sig-mixed-models at r-project.org> mailing list