- Free Oracle account
- VirtualBox
- The following tries to replicate the CRAN builds config.
- Solaris iconv does not work. We need GNU iconv from CSW
- The CSW version of
r_base
usesgcc
(also from CSW) - The builds below use the Oracle Studio 12.5 compiler instead (because CRAN)
- Download Solaris 10 VM for VirtualBox
- Double Click image to open in Virtualbox
- In virtual box "Devices" menu, enable share clipboard bewteen guest/host (bidirectional).
- Click though menu to setup server.
- Log as root.
- Use
kbd -s
to change keyboard layout, log-out and log-on to activate.
- Like CRAN, we use Oracle Studio 12.5
- Dowload Oracle Studio 12.5
- Unpack the using
bzip2 -d OracleDeveloperStudio12.5-solaris-x86-pkg.tar.bz2
andtar -xvf OracleDeveloperStudio12.5-solaris-x86-pkg.tar
- Go in the folder
cd OracleDeveloperStudio12.5-solaris-x86-pkg
- If not enough space in temp dir when running
./developerstudio.sh
, domkdir ../temp
and./developerstudio.sh --tempdir ../temp
- Add the opencsw repsitory.
- Install GNU iconv:
/opt/csw/bin/pkgutil -y -i libiconv_dev
- Install GNU readline:
/opt/csw/bin/pkgutil -y -i libreadline6
- Install GNU gcc5:
/opt/csw/bin/pkgutil -y -i gcc5core
- Install GNU wget
/opt/csw/bin/pkgutil -y -i wget
/opt/csw/bin/wget http://cran.rstudio.com/src/base/R-3/R-3.5.1.tar.gz
gunzip -d R-3.5.1.tar.gz
tar xvf R-3.5.1.tar
cd R-3.5.1
rm config.site
## Copy new config.site into R dir
PATH=$PATH:/opt/developerstudio12.5/bin
./configure --prefix=/opt/R --with-readline=no --with-internal-tzcode
make
sudo mkdir -p /opt/R/lib/R/lib
sudo make install