Error Information: ERROR: compilation

Hello,
I have very little programming knowledge, so I hope you will excuse me if the question is trivial. I am using a mac and I am trying to install an R package from Github.

library(devtools)
install_github("kosukeimai/dynCluster")

Unfortunately the installation fails due to some compilation problem.

Here is the error message I ger:

> install_github("kosukeimai/dynCluster",build_vignettes = FALSE) # developer package name
Downloading GitHub repo kosukeimai/dynCluster@master
✓  checking for file ‘/private/var/folders/mc/6ps4186578j1lpg643t7gchr0000gn/T/RtmpKRFFyn/remotes288a3b185b9c/kosukeimai-dynCluster-fc60f54/DESCRIPTION’ (391ms)
─  preparing ‘dynCluster’: (1.9s)
✓  checking DESCRIPTION meta-information ...
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘dynCluster_0.2.0.tar.gz’
   
* installing *source* package ‘dynCluster’ ...
** using staged installation
** libs
** arch - 
g++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/usr/local/include   -fPIC  -DNDEBUG -fopenmp -lboost_regex -fpic -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c Analytics.cpp -o Analytics.o
clang: warning: -lboost_regex: 'linker' input unused [-Wunused-command-line-argument]
clang: error: unsupported option '-fopenmp'
make: *** [Analytics.o] Error 1
ERROR: compilation failed for package ‘dynCluster’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/dynCluster’
Error: Failed to install 'dynCluster' from GitHub:
  (contertito da avviso) installation of package ‘/var/folders/mc/6ps4186578j1lpg643t7gchr0000gn/T//RtmpKRFFyn/file288a3c267d13/dynCluster_0.2.0.tar.gz’ had non-zero exit status

Does anyone know what is going wrong? and could anyone tell me how to fix this?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.