Closed Matthew-Mosior closed 5 years ago
Hi @Matthew-Mosior
MGCV is not a direct dependency of GenVisR but is probably loaded by one of the packages in the suggests field. It seems like a very low level package.
At any rate this seems like it's a mac issue, more specifically the default c++ compiler distributed by xcode that R is using does not have -fopenmp
.
The fix is to install a different compiler and then point R to that, these steps should work:
use homebrew to install gcc
brew install gcc@8
find where this gcc is located, for me it's /usr/local/bin/gcc-8
which gcc-8
Tell R to use this compiler by created a Makevars file that R will look at on startup, this should be in ~/.R/Makevars, this is the where R will look on startup
mkdir ~/.R
cd ~/.R
touch Makevars
put these lines in the Makevars file, you might need to change the locations slightly
CC = /usr/local/bin/gcc-8
CXX = /usr/local/bin/g++-8
CFLAGS = -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion
CXXFLAGS = -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion
restart R and you should be good to go
Hi!
I have been trying download the
Suggests
packages, but am running into issues when trying to install themgcv
R package.Here is the error message from R:
Thanks!!
Matthew Mosior