Error during packages compilation about -lomp


If you have an error about -lomp, you must verify that you have libomp.dylib. The simplest way to do is to in terminal and activate locate database:

sudo /usr/libexec/locate.updatedb

This function can be used also to update the database.

Then you can do:

locate libomp.dylib  | xargs ls -l

And the result is for example:
-rwxrwxr-x  1 root          admin  508044 26 aoû 22:31 /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libomp.dylib
-r--r--r--  1 marcgirondot  admin  442396 31 jan  2018 /usr/local/Cellar/llvm/5.0.1/lib/libomp.dylib
-r--r--r--  1 marcgirondot  admin  491820 12 mar 09:38 /usr/local/Cellar/llvm/6.0.0/lib/libomp.dylib
-r--r--r--  1 marcgirondot  admin  495888  6 jul 17:11 /usr/local/Cellar/llvm/6.0.1/lib/libomp.dylib

Choose the one that you want (here the first one because it is the most recent), and do:

sudo ln -s /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libomp.dylib /usr/local/lib/libomp.dylib

Commentaires

Posts les plus consultés de ce blog

Standard error from Hessian Matrix... what can be done when problem occurs

stepAIC from package MASS with AICc

Install treemix in ubuntu 20.04