Re: [R] Getting R and x11 to work

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
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//R_X11.so':
> /usr/lib/R/modules//R_X11.so: 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,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive