[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-sig-mac
Subject:    Re: [R-SIG-Mac] Install error for gmm package
From:       Simon Urbanek <simon.urbanek () R-project ! org>
Date:       2023-04-02 8:20:30
Message-ID: 72A85615-63B6-4FCD-85DE-984BCA7A63B0 () R-project ! org
[Download RAW message or body]

Hasan,

packages shouldn't be using gomp as it is not supported - it seems that gmm is \
hard-coding -lgomp even if it is not enabled by R. Although this is a bug in gmm \
(which the authors should fix), you can try to work around it by installing the GNU \
Fortran compiler as follows:

open the Terminal (under Application->Utilities) and type

cd /tmp
curl -O https://mac.r-project.org/tools/gfortran-12.0.1-20220312-is-darwin20-arm64.tar.xz
 sudo tar fxz gfortran-12.0.1-20220312-is-darwin20-arm64.tar.xz -C /

Cheers,
Simon



> On Apr 2, 2023, at 6:15 PM, HASAN BULUT <hasan.bulut@omu.edu.tr> wrote:
> 
> Hi everyone,
> 
> I have Macbook air M2 and I need the "gmm" package. But I cannot install \
> conventionally this package. When I install and call this package, I see below \
> error message: 
> Loading required package: sandwich
> Error: package or namespace load failed for ‘gmm' in dyn.load(file, DLLpath = \
> DLLpath, ...): unable to load shared object \
> '/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/gmm/libs/gmm.so':
>  dlopen(/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/gmm/libs/gmm.so, \
> 0x0006): Library not loaded: /opt/R/arm64/gfortran/lib/libgomp.1.dylib Referenced \
> from: <47242657-5A5D-3982-936B-398527D642B4> \
> /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/gmm/libs/gmm.so
>                 
> Reason: tried: '/opt/R/arm64/gfortran/lib/libgomp.1.dylib' (no such file), \
> '/System/Volumes/Preboot/Cryptexes/OS/opt/R/arm64/gfortran/lib/libgomp.1.dylib' (no \
> such file), '/opt/R/arm64/gfortran/lib/libgomp.1.dylib' (no such file), \
> '/usr/local/lib/libgomp.1.dylib' (no such file), '/usr/lib/libgomp.1.dylib' (no \
> such file, not in dyld cache) 
> Could you help me?
> 
> Best wishes.
> 
> Hasan Bulut
> 
> 
> 
> <indir.png>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic