我正在使用R,我需要安装Cairo
包。
install.packages("Cairo")
规范 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
答案 0 :(得分:5)
有同样的错误。解决:
将已经安装的3个以下部分运行,但运行和检查不会受到伤害
yum install libX11
yum install libX11-devel
yum install libXt
然后运行以下修复我的问题:
yum install libXt-devel
之后能够在R 2.15.0 RHEL6.1中安装.packages(“Cairo”)
答案 1 :(得分:1)
在Alpine-linux上,我使用以下方法解决了这个问题:
apk add cairo-dev