Re: [R] unable to load shared library '/usr/local/lib/R/modules//R_X11.so'

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Mon, 17 Mar 2008 06:23:56 +0000 (GMT)

On Sun, 16 Mar 2008, tomkur2006-takehome_at_yahoo.com wrote:

> Hi,
>
> I downloaded a binary version of R for my Solaris 10 box (from
> http://www.sunfreeware.com/programlistsparc10.html#R), and everything
> looked fine during the installation. However, I got a "X11 module
> cannot be loaded" error when I attempted to save a graph to be a png
> file. Does it look like a problem of the Solaris box or a problem of
> the installation (missing library file)? Thanks in advance.

Are your library paths correct? Is your Solaris fullly patched?

libSM.so.6 is part of Solaris, in /usr/openwin/lib. If that exists, try adding /usr/openwin/lib to LD_LIBRARY_PATH (e.g. in R_HOME/etc/ldpaths). If not, get it from your Solaris installation discs.

>> png(filename="test.png",height=480, width=640)
> Error in png(filename = "test.png", height = 480, width = 640) :
> X11 module cannot be loaded
> In addition: Warning message:
> In png(filename = "test.png", height = 480, width = 640) :
> unable to load shared library '/usr/local/lib/R/modules//R_X11.so':
> ld.so.1: R: fatal: libSM.so.6: open failed: No such file or directory
>
>
> The file '/usr/local/lib/R/modules//R_X11.so' was physically there.
> -bash-3.00$ ls -l /usr/local/lib/R/modules//R_X11.so
> -rwxr-xr-x 1 bin bin 112152 Oct 5 02:02 /usr/local/lib/R/modules//R_X11.so

But that is not what it says is missing.

>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>

-- 
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 Mon 17 Mar 2008 - 06:27:01 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 Mon 17 Mar 2008 - 06:30:24 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