FrederickHuangLin / ANCOMBC

Differential abundance (DA) and correlation analyses for microbial absolute abundance data
https://www.nature.com/articles/s41467-020-17041-7
103 stars 26 forks source link

Failure to install ANCOMBC neither windows nor Ubuntu #261

Open emankhalaf opened 4 months ago

emankhalaf commented 4 months ago

Hello,

I tried to install ANCOMBC in RStudio on Ubuntu 20.04 without success. Consequently, I tried installing it on Windows but encountered the same issue. By the way, I am using RStudio version 4.3.3 (Ubuntu), and 4.2.3 (windows)

See below from Ubuntu:

BiocManager::install("ANCOMBC") 'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories", package = "BiocManager")' for details. Replacement repositories: CRAN: https://cloud.r-project.org/ Bioconductor version 3.17 (BiocManager 1.30.22), R 4.3.3 (2024-02-29) Installing package(s) 'ANCOMBC' also installing the dependencies ‘Cairo’, ‘ggrastr’, ‘scater’, ‘DirichletMultinomial’, ‘Rmpfr’, ‘gsl’, ‘mia’, ‘CVXR’, ‘energy’

trying URL 'https://cloud.r-project.org/src/contrib/Cairo_1.6-2.tar.gz' Content type 'application/x-gzip' length 99417 bytes (97 KB)

downloaded 97 KB

trying URL 'https://cloud.r-project.org/src/contrib/ggrastr_1.0.2.tar.gz' Content type 'application/x-gzip' length 2592994 bytes (2.5 MB)

downloaded 2.5 MB

trying URL 'https://bioconductor.org/packages/3.17/bioc/src/contrib/scater_1.28.0.tar.gz' Content type 'application/gzip' length 4089325 bytes (3.9 MB)

downloaded 3.9 MB

trying URL 'https://bioconductor.org/packages/3.17/bioc/src/contrib/DirichletMultinomial_1.42.0.tar.gz' Content type 'application/gzip' length 438338 bytes (428 KB)

downloaded 428 KB

trying URL 'https://cloud.r-project.org/src/contrib/Rmpfr_0.9-5.tar.gz' Content type 'application/x-gzip' length 608053 bytes (593 KB)

downloaded 593 KB

trying URL 'https://cloud.r-project.org/src/contrib/gsl_2.1-8.tar.gz' Content type 'application/x-gzip' length 217997 bytes (212 KB)

downloaded 212 KB

trying URL 'https://bioconductor.org/packages/3.17/bioc/src/contrib/mia_1.8.0.tar.gz' Content type 'application/gzip' length 2117730 bytes (2.0 MB)

downloaded 2.0 MB

trying URL 'https://cloud.r-project.org/src/contrib/CVXR_1.0-12.tar.gz' Content type 'application/x-gzip' length 844245 bytes (824 KB)

downloaded 824 KB

trying URL 'https://cloud.r-project.org/src/contrib/energy_1.7-11.tar.gz' Content type 'application/x-gzip' length 57897 bytes (56 KB)

downloaded 56 KB

trying URL 'https://bioconductor.org/packages/3.17/bioc/src/contrib/ANCOMBC_2.2.2.tar.gz' Content type 'application/gzip' length 1068225 bytes (1.0 MB)

downloaded 1.0 MB

The downloaded source packages are in ‘/tmp/Rtmp7YRkII/downloaded_packages’ Installation paths not writeable, unable to update packages path: /usr/lib/R/library packages: codetools, lattice, MASS, nlme, spatial Old packages: 'ape', 'bslib', 'callr', 'data.table', 'datawizard', 'dbplyr', 'dunn.test', 'effectsize', 'ggsci', 'gh', 'htmltools', 'httpuv', 'httr2', 'insight', 'knitr', 'lme4', 'matrixStats', 'munsell', 'performance', 'pkgdown', 'promises', 'quanteda', 'RcppArmadillo', 'reticulate', 'RSQLite', 'rstudioapi', 'sf', 'shiny', 'testthat', 'uwot', 'xfun' Update all/some/none? [a/s/n]: Update all/some/none? [a/s/n]: n Warning messages: 1: In install.packages(...) : installation of package ‘Cairo’ had non-zero exit status 2: In install.packages(...) : installation of package ‘DirichletMultinomial’ had non-zero exit status 3: In install.packages(...) : installation of package ‘Rmpfr’ had non-zero exit status 4: In install.packages(...) : installation of package ‘gsl’ had non-zero exit status 5: In install.packages(...) : installation of package ‘ggrastr’ had non-zero exit status 6: In install.packages(...) : installation of package ‘CVXR’ had non-zero exit status 7: In install.packages(...) : installation of package ‘energy’ had non-zero exit status 8: In install.packages(...) : installation of package ‘scater’ had non-zero exit status 9: In install.packages(...) : installation of package ‘mia’ had non-zero exit status 10: In install.packages(...) : installation of package ‘ANCOMBC’ had non-zero exit status

Help is much appreciated!

cyklee commented 3 months ago

configure: error: Cannot find cairo.h! Please install cairo (http://www.cairographics.org/) and/or set CAIRO_CFLAGS/LIBS correspondingly.

Have you tried installing Cairo? You can install it on Ubuntu by running sudo apt-get install libcairo2-dev in the terminal.