Open ptsii opened 1 year ago
I'm not sure what this means (what caused the problem). It occurred twice FWIW. I ended up trying to install using Method 2 (from command line) listed here: https://github.com/ANTsX/ANTsR. That worked without errors.
Thanks for the workaround. I've not used cmaker in a long time - what version of cmake does it provide? If it's too old, that might be the cause of compilation problems.
I'm not sure how to check that - how do I check what version of cmaker it provides? That may well be the issue, because before trying the second method (command line install sequence using R CMD INSTALL), I in fact updated to the latest cmaker.
Looks like CMake 3.11 from here
https://github.com/stnava/cmaker/blob/master/DESCRIPTION
I think but I'm not sure that R CMD install
uses system commands, so if you have a newer cmake in your environment, that might be why it works.
I have reproduced this error via Docker, when installing using devtools::install and remotes::install
#8 6553.4 Error: package or namespace load failed for ‘ANTsR’ in dyn.load(file, DLLpath = DLLpath, ...):
#8 6553.4 unable to load shared object '/usr/local/lib/R/site-library/00LOCK-ANTsR/00new/ANTsR/libs/ANTsR.so':
#8 6553.4 /usr/local/lib/R/site-library/00LOCK-ANTsR/00new/ANTsR/libs/ANTsR.so: undefined symbol: composeDisplacementFields
#8 6553.4 Error: loading failed
#8 6553.4 Execution halted
This is using R 4.0.5 and CMake 3.25.3, so I think it's not cmake.
I just tried to build ANTsR from within R doing:
It seemed to compile fine, but then failed on the install:
This is a multi-user machine (OSX), but this was done from one of the accounts that has admin privileges.
Any ideas about what might have happened?