Re: [R] Getting R and x11 to work

From: Prof Brian Ripley <>
Date: Fri, 06 Jun 2008 08:39:24 +0100 (BST)

On Fri, 6 Jun 2008, Rick Bilonick wrote:

> I'm using Suse Linux Enterprise Desktop 10.2 (SP2) on an HP 2133 (x86)
> mini-notebook. (There apparently are a LOT of bugs in 10.1!) I
> downloaded R-base from the openSuse 10.2 repository and was (finally)
> able to install it (after installing blas and gcc-fortran). I can start
> an R session and do computations. When I try to do any graphics using
> x11, I get the message:
> unable to load shared library '/usr/lib/R/modules//':
> /usr/lib/R/modules// undefined symbol:
> cairo_image_surface_get_data
> Does anyone have an idea on how to fix this?

Yes, your binary version of R is incompatible with the version of cairo you have installed (if you have one). Really the RPM should have checked that, so please report to the maintainer.

Short-term fix: set X11.options(type="Xlib") in the session or in .Rprofile via

setHook(packageEvent("grDevices", "onLoad"),

         function(...) grDevices::X11.options(type="Xlib") )

Longer-term fix: install or update cairo >= 1.2 (and preferably 1.4).

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 06 Jun 2008 - 10:12:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 06 Jun 2008 - 10:30:36 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive