Open emankhalaf opened 4 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.
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:
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
gsl-config --cflags
-DR_DIRICHLETMULTINOMIAL -fpic -g -O2 -fdebug-prefix-map=/build/r-base-CIJAF4/r-base-4.3.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c R_init_DirichletMultinomial.c -o R_init_DirichletMultinomial.o /bin/bash: gsl-config: command not found gcc -I"/usr/share/R/include" -DNDEBUGgsl-config --cflags
-DR_DIRICHLETMULTINOMIAL -fpic -g -O2 -fdebug-prefix-map=/build/r-base-CIJAF4/r-base-4.3.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c dirichlet_fit.c -o dirichlet_fit.o /bin/bash: gsl-config: command not found gcc -I"/usr/share/R/include" -DNDEBUGgsl-config --cflags
-DR_DIRICHLETMULTINOMIAL -fpic -g -O2 -fdebug-prefix-map=/build/r-base-CIJAF4/r-base-4.3.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c dirichlet_fit_main.c -o dirichlet_fit_main.o /bin/bash: gsl-config: command not found dirichlet_fit_main.c:1:10: fatal error: gsl/gsl_rng.h: No such file or directory 1 | #include <gsl/gsl_rng.h> | ^~~~~~~ compilation terminated. make: *** [/usr/lib/R/etc/Makeconf:191: dirichlet_fit_main.o] Error 1 ERROR: compilation failed for package ‘DirichletMultinomial’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!