尝试在centos 7服务器

时间:2017-08-18 14:50:05

标签: r centos7 cairo shiny-server

我已在服务器中安装了cairo-devel。当我尝试以下行时:

sudo su - -c "R -e \"install.packages('Cairo', repos='http://cran.rstudio.com/')\""

我得到了一堆输出,但最相关的是以下内容:

img-backend.c:82:13: warning: ‘image_save_page_jpg’ defined but not used [-Wunused-function]
 static void image_save_page_jpg(Rcairo_backend* be, int pageno){
             ^
img-backend.c:96:13: warning: ‘image_save_page_tiff’ defined but not used [-Wunused-function]
 static void image_save_page_tiff(Rcairo_backend* be, int pageno){
             ^

xlib-backend.c:34:74: fatal error: X11/Intrinsic.h: No such file or directory
 #include <X11/Intrinsic.h>      /*->    Xlib.h  Xutil.h Xresource.h .. */
                                                                          ^
compilation terminated.
make: *** [xlib-backend.o] Error 1
ERROR: compilation failed for package ‘Cairo’
* removing ‘/usr/lib64/R/library/Cairo’

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

我必须安装libXt-devel。

sudo yum install libXt-devel