[R-SIG-Mac] procedure to ship libomp.dylib run-time with package
Timothy Bates
t|m@b@te@ @end|ng |rom ed@@c@uk
Mon Jun 24 23:00:05 CEST 2024
At https://mac.r-project.org/openmp/ it says
"any package you compile against libomp.dylib will need that run-time so you have to ship it with your package or have users install it”
Are there any instructions on what to do/where to put libomp.dylib so it will be found?
I’ve compiled a package (OpenMx) in which OpenMP is working locally but other users get the error:
require(OpenMx)
Error: package or namespace load failed for ‘OpenMx’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Users/***/Library/R/x86_64/4.4/library/OpenMx/libs/OpenMx.so':
dlopen(/Users/***/Library/R/x86_64/4.4/library/OpenMx/libs/OpenMx.so, 0x0006): Library not loaded: /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libomp.dylib
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.
More information about the R-SIG-Mac
mailing list