在Red Hat(RHEL)上安装Cairo程序包时出错

Man*_*ish 2 redhat rhel package cairo

我正在研究R,我需要安装Cairo软件包.

install.packages("Cairo")
Run Code Online (Sandbox Code Playgroud)

规范 R版本2.15.0(2012-03-30)操作系统:红帽企业Linux服务器版本6.1(圣地亚哥)

我收到以下错误消息:

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

The downloaded source packages are in
    ‘/tmp/RtmpqtvjPA/downloaded_packages’
Updating HTML index of packages in '.Library'
Making packages.html  ... done
Warning message:
In install.packages("Cairo") :
  installation of package ‘Cairo’ had non-zero exit status
Run Code Online (Sandbox Code Playgroud)

小智 5

有同样的错误.要解决:

除了已经安装的3件以下的部件,但运行和检查没有伤害

yum install libX11
yum install libX11-devel
yum install libXt
Run Code Online (Sandbox Code Playgroud)

然后运行以下修复我的问题:

yum install libXt-devel
Run Code Online (Sandbox Code Playgroud)

之后能够在R 2.15.0 RHEL6.1中安装.packages("Cairo")