An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20100720/642d1b34/attachment.pl>
Building rattle on Solaris 10u7 X86
3 messages · Xiaobo Gu, Brian Ripley
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
Hi Professor Brian Ripley, Thanks for your help,
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).
Do you suggest to use the new X11 from OpenCSW to replace the one shipped with Solaris, and do you have any procedural guides.
- we failed to build RGtk2 with the SunStudio compiler, and had to use gcc.
I used SunStudio building R, do we need to use the same compiler for both R and Packages? I followed the guides in https://www.initworks.com/wiki/pages/viewpage.action?pageId=6521038 to build R with SunStudio, is there some similar guides when using 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).
Yes, I am trying to install the packages which are dependent by Rattle, and RGtk2 is the first one.
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).
Actually I am new to R, and don't really know the differences between building and installing packages. The R CMD INSTALL command just can install packages from source code. Xiaobo Gu