I have followed instruction to compile R package but haven't successful yet.
I have installed gsl 2.71 through brew, swig@3.0.12, and successfully build R/OpenABMCovid19.R and src/covid19_wrap_R.c.
However, I cannot build or install the package and the error seems to relate to 'gsl/gsl_rng.h' not found.
I have tried 3 different computers using MacOS and they all produced errors related to "gsl_rng.h" (MacBook Pro M1 - Big Sur - R version 4.0.4, MacBook Pro Intel - Big Sur - R version 4.0.1, iMac - Catalina - R version 4.1.0)
Below are errors when I used MacBook Pro M1, OS Big Sur, R version 4.0.4., and tried devtools::document(), or devtools::build():
Error: Could not find tools necessary to compile a package
Call pkgbuild::check_build_tools(debug = TRUE) to diagnose the problem.
Below is error when I tried R CMD INSTALL --no-multiarch --with-keep.source OpenABM-Covid19-master:
installing to library ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library’
installing source package ‘OpenABMCovid19’ ...
using staged installation
libs
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/usr/local/include -fPIC -I/usr/local/opt/gsl/include -c R_C_interface.c -o R_C_interface.o
In file included from R_C_interface.c:7:
In file included from ./model.h:17:
In file included from ./individual.h:16:
In file included from ./params.h:11:
./constant.h:11:10: fatal error: 'gsl/gsl_rng.h' file not found
Dear all,
I have followed instruction to compile R package but haven't successful yet. I have installed gsl 2.71 through brew, swig@3.0.12, and successfully build R/OpenABMCovid19.R and src/covid19_wrap_R.c. However, I cannot build or install the package and the error seems to relate to 'gsl/gsl_rng.h' not found.
I have tried 3 different computers using MacOS and they all produced errors related to "gsl_rng.h" (MacBook Pro M1 - Big Sur - R version 4.0.4, MacBook Pro Intel - Big Sur - R version 4.0.1, iMac - Catalina - R version 4.1.0)
Below are errors when I used MacBook Pro M1, OS Big Sur, R version 4.0.4., and tried devtools::document(), or devtools::build():
Error: Could not find tools necessary to compile a package Call
pkgbuild::check_build_tools(debug = TRUE)
to diagnose the problem.Below is error when I tried R CMD INSTALL --no-multiarch --with-keep.source OpenABM-Covid19-master:
include <gsl/gsl_rng.h>
1 error generated. make: *** [R_C_interface.o] Error 1 ERROR: compilation failed for package ‘OpenABMCovid19’
Exited with status 1.