How to install R on Solaris on a VirtualBox virtual machine?

This Q&A is the answer to this comment . The answer to the question in the comment is not trivial, too large for the comment and does not fit as an answer to the question in this thread (answering my own question is officially recommended ). If you have a better answer, let me know!

The question arises: how to install R in Solaris on a VirtualBox virtual machine?

+7
virtual-machine r solaris virtualbox
source share
2 answers

Start by downloading and installing Oracle VM VirtualBox .

Then download and unzip the Solaris 11.1 VirtualBox template . After unpacking the Oracle template, you will see a file called OracleSolaris11_1.ova , which you open in VirtualBox.

Launch VirtualBox, click File , then Import Appliance , then go on to select the ova file you just extracted. It will take some time to import.

Start the Solaris virtual machine by clicking the start button on VirtualBox. It will take some time to start, and you will be prompted to add the root password, username and user password. Then you will use this data to log in, wait for the system to boot, select gnome to make sure you get the desktop environment, and select your time zone, keyboard layout and language (mine seems to highlight Chinese as the default , so be careful not to click on it too quickly).

In the end you will get the desktop, right-click on the desktop and click open terminal , then enter the type of terminal (or paste):

 sudo wget https://oss.oracle.com/ORD/ord-3.0.1-sol10-x86-64-sunstudio12u3.tar.gz && sudo wget https://oss.oracle.com/ORD/ord-3.0.1-supporting-sol10-x86-64-sunstudio12u3.tar.gz 

This will be an internet connection and downloading the two files you need. The following line will unpack these two archives:

 sudo tar -xzvf ord-3.0.1-sol10-x86-64-sunstudio12u3.tar.gz && sudo tar -xzvf ord-3.0.1-supporting-sol10-x86-64-sunstudio12u3.tar.gz 

Then this next line sets R, follow the prompts after starting the line:

 sudo bash install.sh 

A lot will flash in the terminal, concluding with Installation of <ORD> was successful

Now the next bit is where I deviate from the instructions here because I did not understand them. You will move all files starting with lib from archives that you unpacked to another directory where they are needed, R :

 sudo mv lib* /usr/lib/64/R/lib/ 

This will not return anything to the terminal. Then we can start R simply by typing in the terminal like this:

 R 

And now you should have a regular R session running in the terminal.

+4
source share

A more modern version is available from csw: r_base . For installation, see the Example in Getting Started , where you replace vim with r_base :

 pkgadd -d http://get.opencsw.org/now /opt/csw/bin/pkgutil -U /opt/csw/bin/pkgutil -a r_base /opt/csw/bin/pkgutil -y -i r_base 

To install a development environment, you may also need:

 /opt/csw/bin/pkgutil -y -i gcc4g++ /opt/csw/bin/pkgutil -y -i texlive 
+4
source share

All Articles