Mouse-Imaging-Centre / RMINC

Statistics for MINC volumes: A library to integrate voxel-based statistics for MINC volumes into the R environment. Supports getting and writing of MINC volumes, running voxel-wise linear models, correlations, etc.; correcting for multiple comparisons using the False Discovery Rate, and more. With contributions from Jason Lerch, Chris Hammill, Jim Nikelski and Matthijs van Eede. Some additional information can be found here:
https://mouse-imaging-centre.github.io/RMINC
Other
23 stars 17 forks source link

Installation issue on R-4.4.1/Ubuntu 18 #324

Open kodiweera opened 3 months ago

kodiweera commented 3 months ago

Hi, I'm trying to install RMINC on R-4.4.1 on Ubuntu 18. I get the following error msg. Do you see what's wrong? hdf5 version: 1.8.18 and gcc version is 7. As a matter of fact, I tried installing with different versions of hdf5 and gcc versions, but no luck! I also tried the previous release and get the same error msg. Thanks for any suggestion.

.......................................................................................................................................................... In file included from /usr/share/R/include/R.h:78, from minc_reader.h:12, from modelling_functions.c:1: modelling_functions.c: In function ‘voxel_lm’: modellingfunctions.c:541:12: error: too few arguments to function ‘dpotri’ F77_CALL(dpotri)("Upper", &p, x, &n, &info);

after many lines..at the end of the day

/usr/lib/R/etc/Makeconf:195: recipe for target 'modelling_functions.o' failed make: *** [modelling_functions.o] Error 1 .........................................................................................................................................................

full output:

Installing package into ‘/home/brain/R/x86_64-pc-linux-gnu-library/4.4’ (as ‘lib’ is unspecified)

yohanyee commented 3 months ago

Hello, this appears to be a duplicate of issue #314 .

Can you try installing from the develop branch and let us know if that works?

kodiweera commented 3 months ago

Hi yohanyee, That worked! I installed it on both Ubuntu 18 and 20 runing R-4.4.1.

Here's what I did: git clone -b develop https://github.com/Mouse-Imaging-Centre/RMINC.git cd RMIN R CMD INSTALL .

Thanks you all for all your good work!

yohanyee commented 3 months ago

Great, glad to know it works.

Another way to install is via devtools in R:

devtools::install_github("Mouse-Imaging-Centre/RMINC@develop")