So I thought I would give it a try. I downloaded the pre-build binary for Ubuntu and ran it on my windows machine. I ran it in batch mode and I didn’t get a crash. It doesn’t load iostream or shared libraries. But the fact that I was able to run the thisroot.sh and the system variables are there amazed me.
Installing from source doesn’t work, because there are several packages that aren’t installed in the bash for windows.
[quote]root@localhost:/mnt/c/Users/luis/Downloads/root_v6.04.16.Linux-ubuntu14-x86_64-gcc4.8/root# . bin/thisroot.sh
root@localhost:/mnt/c/Users/luis/Downloads/root_v6.04.16.Linux-ubuntu14-x86_64-gcc4.8/root# root
root: can’t figure out DISPLAY, set it manually
In case you run a remote ssh session, restart your ssh session with:
=========> ssh -Y
root@localhost:/mnt/c/Users/luis/Downloads/root_v6.04.16.Linux-ubuntu14-x86_64-gcc4.8/root# root -b
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
echo | LC_ALL=C c++ -pipe -m64 -Wall -W -Woverloaded-virtual -fsigned-char -fPIC -pthread -std=c++11 -Wno-deprecated-declarations -Wno-comment -Wno-unused-parameter -Wno-maybe-uninitialized -Wno-unused-but-set-variable -Wno-missing-field-initializers -fPIC -fvisibility-inlines-hidden -std=c++11 -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -O2 -DNDEBUG -xc++ -E -v - 2>&1 >/dev/null | awk ‘/^#include </,/^End of search/{if (!/^#include </ && !/^End of search/){ print }}’ | grep -E "(c|g)++"results in
with exit code 256
input_line_1:1:10: fatal error: ‘new’ file not found
#include
^
input_line_3:38:10: fatal error: ‘string’ file not found
#include
^
| Welcome to ROOT 6.04/16 root.cern.ch |
| © 1995-2014, The ROOT Team |
| Built for linuxx8664gcc |
| From tag v6-04-16, 17 March 2016 |
Try ‘.help’, ‘.demo’, ‘.license’, ‘.credits’, ‘.quit’/’.q’ |
---|
/usr/bin/ldd: line 119: printf: write error: Broken pipe
input_line_8:1:10: fatal error: ‘iostream’ file not found
#include
^
root [0]
[/quote]