This page shall walk you through the steps to be undertaken towards a successful installation of the R-binaries on Solaris platform(s).

Solaris packages

Packages on Solaris allow easy installation and extraction of software. All the parts of a package are maintained in a table of contents. The package tools allow you to install, update and remove software easily without having to worry about "ghost files" left on the system or misconfigured or partly installed software.

Installation

The steps towards a successful installation are as follows:

1. Download
2. Extract
3. Install

1. DOWNLOAD

When downloading a file, make sure you are saving in binary (not text) mode. Check that the filesize matches the size listed above after downloading. From now on, we shall assume that you download the file R-2.6.2.SPARC.pkg.tar.gz, which is the package containing the binaries for a 64-bit UltraSPARC IV Solaris platform.

2. EXTRACT

The R-project binaries are distributed in .tar.gz format as you might have observed. To uncompress the package file, follow the steps listed below:

gunzip R-2.6.2.SPARC.pkg.tar.gz

This operation would produce the file : R-2.6.2.SPARC.pkg.tar, which expands the compressed gzip archive. To get to the package to be installed, you need to do an additional step :

tar xvf R-2.6.2.SPARC.pkg.tar

To short-circuit the operations, you might issue the command:

gunzip -dc R-2.6.2.SPARC.pkg.tar.gz | tar -xvf -

Both the operations would produce the file : R-2.6.2.SPARC.pkg, package "datastream" file, which the package that shall be installed on your system.

3. INSTALL

To install the package datastream file, we shall use the pkgadd command. pkgadd command is available on almost all Solaris platforms (since Solaris 2.5.1).

To begin the installation, become root (login or su -). Change to the directory containing the package. Use /usr/sbin/pkgadd to install packages.

For example,

pkgadd -d R-2.6.2.SPARC.pkg

This command installs the package under /usr/local/R. If the directory does NOT exist before,the Solaris packaging mechanism creates the necessary directories.

To verify the installation, issue the command: pkginfo -l

For example, issue:

pkginfo -l R-Project

This would list the R-Project upon a successful installation, in addition to additional information.

ADDITIONAL INFORMATION

If you want to ask a question on Solaris, subscribe to comp.unix.solaris USENET newsgroup.

ACCOUNTABILITY

The Solaris packages are maintained for R-Project by Mithun Sridharan.

Additionally, versions 2.6.2 and 2.7.0 have also been made available for the Sun Grid environment by Mithun Sridharan. To learn more about the Grid infrastructure, please visit http://network.com.

Please address any queries about the port/performance/the binaries on Solaris platform or Sun Studio compiler suite to Mithun Sridharan.