stefpeschel / NetCoMi

Network construction, analysis, and comparison for microbial compositional data
GNU General Public License v3.0
143 stars 24 forks source link

Problems while installing the NetCoMi #109

Closed Ilaria-Pirona closed 7 months ago

Ilaria-Pirona commented 7 months ago

Good evening, I am using R version 4.3.2 (2023-10-31) and I am having troubles while installing you package due to "impute" package.

Error:

` installing source* package ‘impute’ ... using staged installation libs sh: /opt/gfortran/bin/gfortran: No such file or directory using SDK: ‘MacOSX14.2.sdk’ /opt/gfortran/bin/gfortran -arch arm64 -fPIC -Wall -g -O2 -c knnimpute.f -o knnimpute.o make: /opt/gfortran/bin/gfortran: No such file or directory make: *** [knnimpute.o] Error 1 ERROR: compilation failed for package ‘impute’

However I have installed gfortran correctly:

gfortran --version GNU Fortran (Homebrew GCC 13.2.0) 13.2.0 Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I have no idea about how to solve this, but the "impute" package is blocking me to install NetCoMi. Have you any suggestions? Thank you in advance.

Ilaria-Pirona commented 7 months ago

I used the solution found here: https://stackoverflow.com/questions/69639782/installing-gfortran-on-macbook-with-apple-m1-chip-for-use-in-r