Hi,
Is there any way I can run root from windows terminal?
I run root from Ubuntu’s terminal at my work place. My pc has windows OS, so I am wondering If i can also use root from Windows terminal??
Thanks,
Hi,
Version 6 of ROOT is not quite ready to use on Windows. For version 5, you can install cygwin and use ROOT from a cygwin command prompt.
Cheers,
Philippe.
Hi,
To run ROOT in a Windows command prompt, simply open a command prompt, execute “c:\wherever\root\bin\thisroot.bat”, and then, just type root. e.g.:
Cheers, Bertrand
Hi Bellnot,
Thank you for your reply. I can now run it from command prompt.
But whenever I try to excute a macro it says that “…TGraph is Zombie” and “root.exe has stopped working”, while the same code runs perfectly from Ubuntu.
How can I fix this issue?
Thanks
Hi,
Try some of the ROOT tutorials, if they work, it’s a problem with your macro…
Cheers, Bertrand.
Hi,
I tried to run a simple code from tutorial in Windows 8.
{
TCanvas *c1 = new TCanvas("c1","A Simple Graph Example",700,500);
TGraph *gr = new TGraph("CH0.dat", "%lg, %lg");
gr->SetLineColor(2);
gr->SetLineWidth(4);
gr->SetMarkerColor(4);
gr->SetMarkerStyle(21);
gr->SetTitle("a simple graph");
gr->GetXaxis()->SetTitle("X title");
gr->GetYaxis()->SetTitle("Y title");
gr->Draw("Same");
}
An error message pops up saying TGraphPainter::PaintGraph: illegal number of points <0>
Is there a way I can fix this problem?
Sorry,
i figured out the mistake.