[Rd] Building rattle on Solaris 10u7 X86

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Jul 20 08:07:57 CEST 2010


Our experience is

- the X11 installation on Solaris is too old for these packages.  We 
use the one from OpenCSW (see the R-admin manual).  cairographics in 
particular has moved on a lot since the 2005 release of Solaris 10 
(cairo reached version 1.0 after that).

- we failed to build RGtk2 with the SunStudio compiler, and had to use 
gcc.

Note that nothing in this message is about 'building rattle' (your 
subject line): it is about installing packages rattle's GUI depends 
on.  Let me warn you that rattle doesn't just depend on RGtk2, it 
depends on RGtk2 built with libglade2 support: which is optional and 
not installed by default on Solaris (and often not elsewhere).

Note that in R terminolgy (see Writing R Extensions), building a 
package (R CMD build) is not the same thing as installing one (R CMD 
INSTALL).

On Tue, 20 Jul 2010, Amber wrote:

> We have tried to build rattle on Solaris 10 X86 platform, and the results
> are :
> 1.       Package XML and pmml can be built.
> 2.       Package RGtk2 can be built but can?t be installed because the
> installer can?t find GTK on Solaris, but it seems GTK has been preinstalled
> on Solaris 10, but I don?t know how to configure it.
> 3.       There are errors when building the cairoDevice package , the error
> message is
> -bash-3.00$ R CMD INSTALL cairoDevice
> * installing to library '/opt/R/R2-11-1/lib/R/library'
> * installing *source* package 'cairoDevice' ...
> checking for pkg-config... pkg-config
> configure: creating ./config.status
> config.status: creating src/Makevars
> ** libs
> /opt/sunstudio12.1/bin/cc  -xc99=all -I/opt/R/R2-11-1/lib/R/include
> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
> -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include
> -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include   -g -I/opt/R/R2-11-1/include -I/usr/sfw/include
> -I/opt/sfw/include -I/usr/openwin/share/include    -KPIC  -xO3 -c
> cairoDevice.c -o cairoDevice.o
> "cairoDevice.h", line 3: cannot find include file: <cairo.h>

[Lots of consequences omitted.]

> 4.       The vcd and colorspace package seem dependent on each other.

Not much idea what that means.  You need to install colorspace before 
vcd, but colorspace depends on nothing else.  It 'Suggests' vcd, but 
that is not the same as 'Depends'.  install.packages() will sort 
this out for you.

> Do you have any idear  bout this.
>
> Xiaobo.Gu
>
> 	[[alternative HTML version deleted]]

Please do study the posting guide: people who send HTML demonstrate 
that they have not done so.

-- 
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



More information about the R-devel mailing list