Closed boboshaq closed 1 year ago
The same problem is when I install ANTsR in this way:
Before this problem occur I was problem with ANTsCORE installation. Only ITKR was installed sucessfully. I think that all problems are because I have installed several versions of gcc. In my system is 4.8.5 version but I may use 5.5.0 and 7.5.0 versions too. Originally installed version 4.8.5 is to old to install ITKR+ANTsCORE+ANTsR packages so I typically use 7.5.0 version. I have it in my PATH and lib64 path is in LD_LIBRARY_PATH variable . Regardless ANTsCORE and ANTsR use 4.8.5 version while inside R installation and in cmdline installation (R CMD INSTALL). They do not use ~/.R/Makevars file at all. In my case, to install ANTsCORE and ANTsR packages I had to export CXX and CC variable with pathes to 7.5.0 version of gcc before instalation begins (R CMD INSTALL ...)
I've been having the same issues on Centos 7. I've tried the drat, devtools and command line install options, and the following software versions:
R 3.5.3 and 4.1.2 cmake 2.8.12.2 and 3.17.5 gcc 4.8,5, 10.2.1, 11.2.1
Please let me know if you need further information, or need me to try anything
Reproducible on CentOS with the latest ANTsR source, so I'm adding the bug label.
I see some problems with library paths in ANTsRCore that may be the cause here. Working on a fix
The issue was that ANTsRCore expected libraries under lib
, while some distributions including Centos use lib64
. It now checks both before printing an error message.
I'm now able to build ANTsR with R 4.2.3 and GCC 7.5.0 on Centos7.
Describe the bug Hi, I have problem to install ANTsR. Installation stops with error:
To Reproduce Steps to reproduce the behavior:
I was previous installed cmaker and ANTsCore.
My ~/.R/Makevars file:
From configure script I have know that above error touch different Makevars file : $ANTsR_HOME/src/Makevars and this is what it contain:
Those are problematic lines: *myantslib=[1] "antsLibs: ants libs do not exist" /path/to/R/4.2.1/lib64/R/library/ANTsRCore/libs/lib/ libants=`find [1] "antsLibs: ants libs do not exist" /path/to/R/4.2.1/lib64/R/library/ANTsRCore/libs/lib/ -name "lib.a"`**
From configure script we know that myantslib use antsLibs() function:
ANTsRCore:::antsLibs() - call this to get the path to ants static libaries to which you will link
In my environment, /path/to/R/4.2.1/lib64/R/library/ANTsRCore/libs does not contain lib folder:
and now variable libants from configure script:
Expected behavior I want to install ANTsR. What to do to installation pass?
Desktop (please complete the following information):