GMM/DEP Package lib/libgomp.1.dylib: mach-o, but wrong architecture
1
0
Entering edit mode
Tomaž • 0
@Tomaž-24553
Last seen 8 months ago

Hi,

after installing bioconductor (as on webpage), I get into a problem with DEP and GMM. When I try to run library(DEP) or library(GMM) the following error occurs:

Ony these two packages seem to have a problem.

library(gmm) 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.0/Resources/library/gmm/libs/gmm.so': dlopen(/Library/Frameworks/R.framework/Versions/4.0/Resources/library/gmm/libs/gmm.so, 6): Library not loaded: /usr/local/gfortran/lib/libgomp.1.dylib Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/gmm/libs/gmm.so Reason: no suitable image found. Did find: /usr/local/gfortran/lib/libgomp.1.dylib: mach-o, but wrong architecture /usr/local/gfortran/lib/libgomp.1.dylib: mach-o, but wrong architecture

or

library(DEP) Error: package or namespace load failed for ‘DEP’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/gmm/libs/gmm.so': dlopen(/Library/Frameworks/R.framework/Versions/4.0/Resources/library/gmm/libs/gmm.so, 6): Library not loaded: /usr/local/gfortran/lib/libgomp.1.dylib Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/gmm/libs/gmm.so Reason: no suitable image found. Did find: /usr/local/gfortran/lib/libgomp.1.dylib: mach-o, but wrong architecture /usr/local/gfortran/lib/libgomp.1.dylib: mach-o, but wrong architecture

Latest XCode is installed.

ProblemloadingDEP/GMMpackageinRStudio DEP • 605 views
ADD COMMENT
0
Entering edit mode

Hi Tomaz,

Did you resolve this issue? I have the same problem.

Here's hoping someone will answer.

-Maibritt

ADD REPLY
0
Entering edit mode

Hi,

I had the same problem. All I had to do was install gfortran.

Pick the right release here https://github.com/fxcoudert/gfortran-for-macOS/releases

ADD REPLY
0
Entering edit mode
paulklemm • 0
@user-25061
Last seen 5 months ago
Germany

so i solved this by linking the gomp library of my conda build to the path required by R

  1. locate the dylib

    mdfind -name libgomp.1.dylib

/Users/paul/opt/anaconda3/lib/libgomp.1.dylib

(i found the same one in the brew directory .../Cellar/...)

  1. create the path required by R and link the dylib inside

    sudo mkdir -p /usr/local/gfortran/lib/

    sudo ln -s /Users/paul/opt/anaconda3/lib/libgomp.1.dylib /usr/local/gfortran/lib/

and it works for me (:

ADD COMMENT

Login before adding your answer.

Traffic: 172 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6