Dear ROOTers,
I feel it would be useful to have installation and execute instructions for ROOT 6 in Windows Subsystem for Linux. This request is motivated by more and more students wanting to run ROOT on Windows without any special Linux VM, but still wanting to use Makefiles from their course, potentially CMake and gcc without major effort (so running “natively” on Windows would not fit).
Even though I am more than happy about any student using native Linux or even migrating to it, not all students can be easily convinced
. We have had great success using WSL on Windows 10 here. The basic steps are:
- Install WSL ( https://aka.ms/install ) and then Ubuntu 18.04 from the Windows Store. The first step is not needed anymore for most recent Windows 10 versions, I think.
- Start the freshly installed Ubuntu Bash shell and install the dependencies and some build tools:
sudo apt update && sudo apt dist-upgrade
sudo apt install build-essential libtbb-dev libtiff5 x11-apps git - Now there’s no graphics, since WSL does not ship any X server. You can fix that e.g. by installing Xming and then running inside the Bash shel:
export DISPLAY=localhost:0.0
Xming needs to be running when using this setup! - Now, the regular Ubuntu 18.04 instructions apply, i.e. download the tarball from the ROOT webpage (with
wget), extract it, runsource root/bin/thisroot.shand you can run ROOT with graphics!
Do you think instructions like this could be useful on the ROOT webpage?
Cheers,
Oliver

