stefpeschel / NetCoMi

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

Installation Error #39

Closed emily-m-mercer closed 2 years ago

emily-m-mercer commented 2 years ago

Hi,

Trying to install this in R 4.1.2 and endlessly getting errors. I've gone through closed issues and tried various methods, but it keeps spitting back errors when installing. Any input on how to fix this? It does not work if I try to install SpiecEasi or SPRING separately.

Using github PAT from envvar GITHUB_PAT Downloading GitHub repo stefpeschel/NetCoMi@HEAD 'getOption("repos")' replaces Bioconductor standard repositories, see '?repositories' for details

replacement repositories: CRAN: https://cran.rstudio.com/

These packages have more recent versions available. It is recommended to update all of them. Which would you like to update?

1: All
2: CRAN packages only
3: None
4: cli (3.1.0 -> 3.1.1) [CRAN]

Enter one or more numbers, or an empty line to skip updates: 3 Downloading GitHub repo zdk123/SpiecEasi@HEAD ✓ checking for file ‘/private/var/folders/9_/tg2nr0d945v54g87153420bw0000gn/T/RtmphbGZp6/remotes2e8c113a4c11/zdk123-SpiecEasi-c463727/DESCRIPTION’ (3.3s) ─ preparing ‘SpiecEasi’: ✓ checking DESCRIPTION meta-information ... ─ cleaning src ─ checking for LF line-endings in source and make files and shell scripts (657ms) ─ checking for empty or unneeded directories Removed empty directory ‘SpiecEasi/inst’ ─ looking to see if a ‘data/datalist’ file should be added ─ building ‘SpiecEasi_1.1.2.tar.gz’

1: All
2: CRAN packages only
3: None
4: mixedCCA (1.4.6 -> 71da2060b...) [GitHub] 5: cli (3.1.0 -> 3.1.1 ) [CRAN]

Enter one or more numbers, or an empty line to skip updates: 3 Downloading GitHub repo zdk123/SpiecEasi@HEAD Skipping SpiecEasi, it is already being installed Downloading GitHub repo zdk123/SpiecEasi@HEAD Skipping SpiecEasi, it is already being installed ✓ checking for file ‘/private/var/folders/9_/tg2nr0d945v54g87153420bw0000gn/T/RtmphbGZp6/remotes2e8c3fb89924/GraceYoon-SPRING-470fe2d/DESCRIPTION’ (9.8s) ─ preparing ‘SPRING’: (529ms) ✓ checking DESCRIPTION meta-information ... ─ checking for LF line-endings in source and make files and shell scripts (620ms) ─ checking for empty or unneeded directories ─ building ‘SPRING_1.0.4.tar.gz’

ERROR: dependency ‘SpiecEasi’ is not available for package ‘SPRING’

stefpeschel commented 2 years ago

Hey,

You first have to get SpiecEasi installed since SPRING depends on SpiecEasi, and NetCoMi on both packages.

There are some warnings in your output and I assume they give a hint on why SpiecEasi can't be installed on your computer:

ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran

I searched the SpiecEasi issues for "gfortran" and there are several issues providing solutions for getting SpiecEasi installed on Mac. In issue 164, for instance, is referred to a point in SpiecEasi's readme , where an additional step for Mac users is suggested.

On stackoverflow, there's also a similar issue where you could find an answer. I would, however, search the SpiecEasi issues for a solution first.

Hope you are finally able to install NetCoMi. Best, Stefanie

emily-m-mercer commented 2 years ago

Hi Stefanie,

Thanks for this insight! I was able to download NetCoMi and dependencies by downloading the gfortan binaries directly from CRAN (https://cran.r-project.org/bin/macosx/tools/) for anyone else who may run into this on Mac.

Thanks again!