GreenleafLab / ArchR

ArchR : Analysis of Regulatory Chromatin in R (www.ArchRProject.com)
MIT License
384 stars 137 forks source link

Failed to install 'ArchR' from GitHub #425

Closed zhijunyuu closed 3 years ago

zhijunyuu commented 3 years ago

Hi,

I followed the installation instructions, but there is still an error about Cairo:

xlib-backend.c:34:10: fatal error: X11/Intrinsic.h: No such file or directory
   34 | #include <X11/Intrinsic.h>      /*->    Xlib.h  Xutil.h Xresource.h .. */
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/path/miniconda3/envs/r4.0.2/lib/R/etc/Makeconf:173: xlib-backend.o] Error 1
ERROR: compilation failed for package ‘Cairo’
* removing ‘/path/miniconda3/envs/r4.0.2/lib/R/library/Cairo’
Error: Failed to install 'ArchR' from GitHub:
  (converted from warning) installation of package ‘Cairo’ had non-zero exit status

Session Info

R version 4.0.3 (2020-10-10)
Platform: x86_64-conda-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Matrix products: default
BLAS/LAPACK: /path/miniconda3/envs/r4.0.2/lib/libopenblasp-r0.3.12.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] ps_1.4.0            fansi_0.4.1         prettyunits_1.1.1  
 [4] rprojroot_2.0.2     withr_2.3.0         digest_0.6.27      
 [7] crayon_1.3.4        assertthat_0.2.1    R6_2.5.0           
[10] magrittr_1.5        rlang_0.4.8         cli_2.1.0          
[13] curl_4.3            fs_1.5.0            remotes_2.2.0      
[16] testthat_3.0.0      callr_3.5.1         ellipsis_0.3.1     
[19] desc_1.2.0          devtools_2.3.2      tools_4.0.3        
[22] glue_1.4.2          pkgload_1.1.0       compiler_4.0.3     
[25] processx_3.4.4      BiocManager_1.30.10 pkgbuild_1.1.0     
[28] sessioninfo_1.1.1   memoise_1.1.0       usethis_1.6.3  
rcorces commented 3 years ago

Cairo is a graphics library - https://www.cairographics.org/download/ Once this graphics library is properly installed on your system, you should be able to install the R library Cairo which utilizes the graphics library. So i assume you just dont have the Cairo graphics library properly installed.

zhijunyuu commented 3 years ago

Thanks for the quick reply. I tried to install the Cairo graphics library, but it didn't work for me.

Then I installed other two packages:

xorg-x11-server-xvfb-cos7-x86_64 libxt-devel-cos7-x86_64

It works.

hoondy commented 3 years ago

try installing it through conda, it worked for me

conda install -c r r-cairo