const-ae / glmGamPoi

Fit Gamma-Poisson Generalized Linear Models Reliably
105 stars 14 forks source link

Can't install the package on MacOS Monterey #37

Open sjwu571 opened 2 years ago

sjwu571 commented 2 years ago

Hi,

I noticed in the error message below it mentioned "big sur" which was the previous MacOS version. Is that why my installation kept failing?

Thanks! JS

BiocManager::install("glmGamPoi") 'getOption("repos")' replaces Bioconductor standard repositories, see '?repositories' for details

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

Bioconductor version 3.15 (BiocManager 1.30.18), R 4.2.0 (2022-04-22) Installing package(s) 'glmGamPoi' Warning: unable to access index for repository https://bioconductor.org/packages/3.15/bioc/bin/macosx/big-sur-arm64/contrib/4.2: cannot open URL 'https://bioconductor.org/packages/3.15/bioc/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES' Warning: unable to access index for repository https://bioconductor.org/packages/3.15/data/annotation/bin/macosx/big-sur-arm64/contrib/4.2: cannot open URL 'https://bioconductor.org/packages/3.15/data/annotation/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES' Warning: unable to access index for repository https://bioconductor.org/packages/3.15/data/experiment/bin/macosx/big-sur-arm64/contrib/4.2: cannot open URL 'https://bioconductor.org/packages/3.15/data/experiment/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES' Warning: unable to access index for repository https://bioconductor.org/packages/3.15/workflows/bin/macosx/big-sur-arm64/contrib/4.2: cannot open URL 'https://bioconductor.org/packages/3.15/workflows/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES' Warning: unable to access index for repository https://bioconductor.org/packages/3.15/books/bin/macosx/big-sur-arm64/contrib/4.2: cannot open URL 'https://bioconductor.org/packages/3.15/books/bin/macosx/big-sur-arm64/contrib/4.2/PACKAGES' Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘glmGamPoi’ Do you want to attempt to install these from sources? (Yes/no/cancel) y installing the source package ‘glmGamPoi’

trying URL 'https://bioconductor.org/packages/3.15/bioc/src/contrib/glmGamPoi_1.8.0.tar.gz' Content type 'application/x-gzip' length 914728 bytes (893 KB)

downloaded 893 KB

const-ae commented 2 years ago

Hi sjwu571,

someone reported a somewhat similar issue on the support side recently: https://support.bioconductor.org/p/9137290/

I assume that you have one of the fancy new M1 Macs, which have a different processor architecture. The official recommendation by the Bioconductor team (see Herve Pages response) is to install the Intel version of R and run it in emulation mode.

Alternatively, you can go ahead and use the R version build specifically for M1 Macs, but that means that you will have to compile all source packages from scratch. Accordingly, you will need to install some additional tools for the compilation. For glmGamPoi in particular you seem to lack a Fortran compiler (from your error log ld: library not found for -lgfortran). The best place to get the neccessary libraries and tools is to download them from https://mac.r-project.org/tools/

There is a specific section how to install Fortran for Apple silicon Macs.

Best, Constantin

https://mac.r-project.org/tools/