ERROR: compilation failed for package ‘spict’
Closed this issue · 1 comments
JavierDeLaHoz commented
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
casperwberg commented
This line:
/bin/sh: /usr/local/Cellar/gcc/7.2.0/bin/g++-7: No such file or directory
Indicates that the C++ compiler can't be found.
Maybe your search path is incorrect or you need to re-install you
compilers.
Kind regards,
Casper
Den ons. 24. feb. 2021 kl. 12.59 skrev JavierDeLaHoz <
notifications@github.com>:
… 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 ***@***.***
✓ 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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#124>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJRWY7QXPC2O6WRW5QYGGLTATSZJANCNFSM4YEME5DQ>
.