Closed ptsii closed 4 years ago
I get the same error if I do:
git clone https://github.com/ANTsX/ANTsRCore.git R CMD INSTALL ANTsRCore
Looks like I needed to install the Command Line Tools for Xcode:
xcode-select --install
(then select the option to install them from a popup window) (https://apple.stackexchange.com/questions/337744/installing-xcode-command-line-tools/339015)
I then tried
R CMD INSTALL ANTsRCore
again, and it seems to be compiling...
Do a ‘xcode-select install’ in the terminal and then try it again.
I updated R to 3.6.1. It then complained that it didn't know ANTsR anymore:
I then tried reinstalling using:
On the last step I get:
clang: warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' [-Wmissing-sysroot] In file included from Atropos.cpp:1: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:642: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:61: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string.h:61:15: fatal error: 'string.h' file not found
include_next
1 error generated. make: *** [Atropos.o] Error 1 ERROR: compilation failed for package ‘ANTsRCore’
Any suggestions about what I might try?
-Tom