<html><head><meta http-equiv="content-type" content="text/html; charset=GB2312"><style>body { line-height: 1.5; }body { font-size: 14px; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }body { font-size: 14px; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>Hi,</div><div>I am installing the cairo in R. I got the message like follow, do you know why and how to fix the problem?</div><div>Thanks and happy new year to everyone!</div>
<div><br></div><div><br></div><div><div>> install.packages("Cairo")</div><div>trying URL 'https://mirror.lzu.edu.cn/CRAN/src/contrib/Cairo_1.5-12.2.tar.gz'</div><div>Content type 'application/octet-stream' length 88631 bytes (86 KB)</div><div>==================================================</div><div>downloaded 86 KB</div><div><br></div><div>* installing *source* package ‘Cairo’ ...</div><div>** package ‘Cairo’ successfully unpacked and MD5 sums checked</div><div>** using staged installation</div><div>checking for gcc... x86_64-conda_cos6-linux-gnu-cc</div><div>checking whether the C compiler works... yes</div><div>checking for C compiler default output file name... a.out</div><div>checking for suffix of executables... </div><div>checking whether we are cross compiling... no</div><div>checking for suffix of object files... o</div><div>checking whether we are using the GNU C compiler... yes</div><div>checking whether x86_64-conda_cos6-linux-gnu-cc accepts -g... yes</div><div>checking for x86_64-conda_cos6-linux-gnu-cc option to accept ISO C89... none needed</div><div>checking how to run the C preprocessor... x86_64-conda_cos6-linux-gnu-cc -E</div><div>checking for grep that handles long lines and -e... /bin/grep</div><div>checking for egrep... /bin/grep -E</div><div>checking for ANSI C header files... yes</div><div>checking for sys/wait.h that is POSIX.1 compatible... yes</div><div>checking for sys/types.h... yes</div><div>checking for sys/stat.h... yes</div><div>checking for stdlib.h... yes</div><div>checking for string.h... yes</div><div>checking for memory.h... yes</div><div>checking for strings.h... yes</div><div>checking for inttypes.h... yes</div><div>checking for stdint.h... yes</div><div>checking for unistd.h... yes</div><div>checking for string.h... (cached) yes</div><div>checking sys/time.h usability... yes</div><div>checking sys/time.h presence... yes</div><div>checking for sys/time.h... yes</div><div>checking for unistd.h... (cached) yes</div><div>checking for an ANSI C-conforming const... yes</div><div>checking for pkg-config... /usr/bin/pkg-config</div><div>checking whether pkg-config knows about cairo... yes</div><div>checking for configurable backends... cairo cairo-ft cairo-pdf cairo-png cairo-ps cairo-xlib cairo-xlib-xrender</div><div>checking whether --static is needed... neither works, abandoning pkg-config</div><div>configure: CAIRO_LIBS is unset, attempting to guess it.</div><div>configure: CAIRO_CFLAGS=-I/usr/include/cairo</div><div>checking if R was compiled with the RConn patch... no</div><div>checking cairo.h usability... yes</div><div>checking cairo.h presence... yes</div><div>checking for cairo.h... yes</div><div>checking for PNG support in Cairo... yes</div><div>checking for ATS font support in Cairo... no</div><div>configure: CAIRO_LIBS=-lcairo</div><div>checking for library containing deflate... -lz</div><div>checking whether Cairo programs can be compiled... configure: error: Cannot compile a simple Cairo program. See config.log for details.</div><div>ERROR: configuration failed for package ‘Cairo’</div><div>* removing ‘/software_users/xujiayue/miniconda3/envs/RNAseq/lib/R/library/Cairo’</div><div>* restoring previous ‘/software_users/xujiayue/miniconda3/envs/RNAseq/lib/R/library/Cairo’</div><div><br></div><div>The downloaded source packages are in</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>‘/data/xujiayue/tmp/RtmppKGMTQ/downloaded_packages’</div><div>Updating HTML index of packages in '.Library'</div><div>Making 'packages.html' ... done</div><div>Warning message:</div><div>In install.packages("Cairo") :</div><div>  installation of package ‘Cairo’ had non-zero exit status</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div><div>> sessionInfo()</div><div>R version 3.6.1 (2019-07-05)</div><div>Platform: x86_64-conda_cos6-linux-gnu (64-bit)</div><div>Running under: Ubuntu 18.04.4 LTS</div><div><br></div><div>Matrix products: default</div><div>BLAS/LAPACK: /software_users/xujiayue/miniconda3/envs/RNAseq/lib/R/lib/libRblas.so</div><div><br></div><div>locale:</div><div> [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              </div><div> [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    </div><div> [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   </div><div> [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 </div><div> [9] LC_ADDRESS=C               LC_TELEPHONE=C            </div><div>[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       </div><div><br></div><div>attached base packages:</div><div>[1] stats     graphics  grDevices utils     datasets  methods   base     </div><div><br></div><div>loaded via a namespace (and not attached):</div><div>[1] compiler_3.6.1 tools_3.6.1    tcltk_3.6.1   </div></div></div><div><br></div><div><br></div><div><br></div><div>I already installed the dev:</div><div><div>sudo apt-get install libcairo2-dev </div><div>sudo apt-get install libxt-dev </div></div><div>sudo apt-get install libx11-dev</div><div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="margin: 10px; font-size: 10pt;"><div style="font-family: 'Microsoft YaHei UI'; font-size: 14px; line-height: 21px;">宋利璞<br>中国科学院 监督与审计局 科研诚信与伦理办公室</div><div style="font-family: 'Microsoft YaHei UI'; font-size: 14px; line-height: 21px;"><span style="line-height: 1.5; background-color: transparent;">北京市西城区三里河路52号(100864)</span></div><div style="font-size: 14px;">电话:010-68597841</div><div style="font-family: 'Microsoft YaHei UI'; font-size: 14px; line-height: 21px;">手机:15210675921</div></div></span></div>
</body></html>