DTUAqua/spict

ERROR: compilation failed for package ‘spict’

Closed this issue · 1 comments

I am trying to install spict on my mac computer (Mac OS Catalina 10.15.4).
library(remotes)
install_github("DTUAqua/spict/spict").
I get this message :
install_github("DTUAqua/spict/spict")
Downloading GitHub repo DTUAqua/spict@HEAD
✓ checking for file ‘/private/var/folders/gv/0v5lrcy5141dtfcz4w_rs0rc0000gn/T/Rtmp7QXZXQ/remotes7c3538c721fa/DTUAqua-spict-a1e51d4/spict/DESCRIPTION’ ...
─ preparing ‘spict’:
✓ checking DESCRIPTION meta-information ...
─ cleaning src
─ checking for LF line-endings in source and make files and shell scripts (413ms)
─ checking for empty or unneeded directories
─ building ‘spict_1.3.4.tar.gz’

  • installing source package ‘spict’ ...
    ** using staged installation
    ** libs
    /usr/local/Cellar/gcc/7.2.0/bin/g++-7 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -DTMB_SAFEBOUNDS -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/TMB/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppEigen/include' -I/usr/local/include -fPIC -Wall -g -O2 -c spict.cpp -o spict.o
    /bin/sh: /usr/local/Cellar/gcc/7.2.0/bin/g++-7: No such file or directory
    make: *** [spict.o] Error 127
    ERROR: compilation failed for package ‘spict’
  • removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/spict’
    Error: Failed to install 'spict' from GitHub:
    (converted from warning) installation of package ‘/var/folders/gv/0v5lrcy5141dtfcz4w_rs0rc0000gn/T//Rtmp7QXZXQ/file7c351987c135/spict_1.3.4.tar.gz’ had non-zero exit status