Root on ubuntu windows 10

Hi, I’m trying to install root cern on Windows 10 with ubuntu. I’m following this guide:

Now at step 11 I don’t know what I have to write. What is source?

And moreover i have ROOT in C:, so how can I write the correct path?

I cannot comment on the guide, as I haven’t used that, but to answer your questions:
When you unzip the downloaded ROOT package it creates, wherever you unzipped it, a folder called “root” and inside of it there are several subfolders; one of these is “bin” and inside it there is, among other stuff, a script file called “”, which configures some variables needed in order to be able to run root (you can open it with any text editor and see what’s inside), and this definition of variables has to be done whenever you open a terminal (bash session in this case) before you can run root. “source” is just a system command telling the system to process that script. You have 2 options:
1 - Type the “source” line manually every time you open a bash session,or
2 - Add that line to the end of your .bashrc file (found in your home folder, which should be the folder where you are when you start bash); you can do this the same way they do in step 10: type nano .bashrc and add the line at the end of the file, save it, close nano, close the bash shell, and the next time you open it, the file will be processed automatically.
If you extracted root directly to C:\ (i.e. your file is in c:\root\bin), your line would be:

 source /mnt/c/root/bin/

Note that you are just adding “/mnt/” to the beginning of the path to the file, removing the “:” and changing “\” to “/”.

1 Like

Thanks for the answer, it worked. But now I have a new problem:

I have written root as the guide said. But i have this error:

/mnt/c/ROOT/bin/root.exe: error while loading shared libraries: /mnt/c/ROOT/lib/ file too short

I can’t help you on that, but check this comment from @bellenot and the thread, it might be a similar situation:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.