Re: [R-SIG-Mac] svg() fails (cairo.so unable to load)

2015-10-19 Thread Prof Brian Ripley
On 18/10/2015 19:29, Marius Hofert wrote: Hi, I get ... svg(filename=(file <- "foo.svg")) Warning messages: 1: In svg(filename = (file <- "foo.svg")) : unable to load shared object '/usr/local/R/R-3.2.2_build/library/grDevices/libs//cairo.so':

Re: [R-SIG-Mac] svg() fails (cairo.so unable to load)

2015-10-19 Thread Marius Hofert
Dear Professor Ripley, Thanks for helping. - Yes, cairo.so did not exist - Okay, following the 'first approach', I have to install XQuartz before R and set "export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig". Is the latter what you mean by "point to it"?

[R-SIG-Mac] svg() fails (cairo.so unable to load)

2015-10-18 Thread Marius Hofert
Hi, I get ... > svg(filename=(file <- "foo.svg")) Warning messages: 1: In svg(filename = (file <- "foo.svg")) : unable to load shared object '/usr/local/R/R-3.2.2_build/library/grDevices/libs//cairo.so': dlopen(/usr/local/R/R-3.2.2_build/library/grDevices/libs//cairo.so, 6): image not found