我在使用 cairo_pdf() 时收到错误消息。
cairo_pdf("sample.pdf")
Warning messages:
1: In cairo_pdf("sample.pdf") :
unable to load shared object '/usr/local/lib64/R/library/grDevices/libs//cairo.so':
/usr/local/lib64/R/library/grDevices/libs//cairo.so: undefined symbol: png_set_longjmp_fn
2: In cairo_pdf("sample.pdf") : failed to load cairo DLL
OS : RHEL6
R : 2.15
如何修复此错误?
问候