Closed pcantalupo closed 3 months ago
I think I figured it out. My gfortran is installed in /usr/local/gfortran. So I created a symlink /opt/gfortran with sudo ln -s /usr/local/gfortran /opt/gfortran
. Then, installing the package was successful
Thanks for bringing this up. The fortran codes are for efficiently calculate the correlation coefficients. In the near future we will substitute the self-written fortran codes with some developed R packages to get the same effect. That will greatly reduce these compilation errors.
That would be good to substitute with your own code. My situation got more complicated. I tried to install Redeconve on a different Mac but it failed. I eventually had to build my own ~/.R/Makevars
(thank you ChatGPT) with the following contents to get it to install:
$ cat ~/.R/Makevars
FC = /usr/local/bin/gfortran
F77 = /usr/local/bin/gfortran
FLIBS = -L/usr/local/Cellar/gcc/14.1.0_1/lib/gcc/current -lgfortran
LDFLAGS += -L/usr/local/Cellar/gcc/14.1.0_1/lib/gcc/current
CPPFLAGS += -I/usr/local/Cellar/gcc/14.1.0_1/include
I'm glad to hear that you solved the problem. If you want, please try our new release v1.1.2, in which all the redundant non-R codes are deleted to avoid compilation errors. Thanks again for bringing this up!
I have gfortran installed on my Mac.
however, when I try to install Redeconve, I get this error:
What is going wrong? Thank you