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.bu...@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