TCanvas is not opening by giving command with root 6.26.10 in ubuntu

In root, after installing all needed packages I am facing a problem with open of canvas. When I am trying to make a histogram by the help of Ubuntu the TCanvas c1; is not opening.
command is-
root [0] TCanvas c1;
root [1] TH1F hist(“hist”, “Histogram”, 100, -10, 10)
(TH1F &) Name: hist Title: Histogram NbinsX: 100
root [2] hist.FillRandom(“gaus”);
root [3] hist.Draw();
root [4]

_ROOT Version: 6.26.10
_Platform: ubuntu
_Compiler: C++


Welcome to the ROOT forum.

It should work (it does for me).

root [0] TCanvas c1;

should give you an empty graphics window.

Does it ?

WSL + a missing X11 server on Windoze?
ssh without “-X -Y” options?

yes please

what do you mean ?

I installed root version 6.26.10 and google executable not found in cmake that’s why it is not working. For this what should I do ?

Can you copy/paste here the error messages you get ?

CHROME_EXECUTABLE CHROME_EXECUTABLE-NOTFOUND
CMAKE_BUILD_TYPE Release
CMAKE_CXX_EXTENSIONS OFF
CMAKE_CXX_STANDARD 17
CMAKE_INSTALL_JSROOTDIR
CMAKE_INSTALL_OPENUI5DIR
CMAKE_INSTALL_PREFIX /home/pvarshney/root-6.26.10-install
CMAKE_INSTALL_PYTHONDIR lib
CMAKE_INVOKE /usr/bin/cmake /home/pvarshney/root-6.26.10
CXX_STANDARD_STRING 17
DL_LIBRARY_PATH /usr/lib/x86_64-linux-gnu/libdl.a
ENABLE_EXPERIMENTAL_NEW_PASS_M OFF
ENABLE_LINKER_BUILD_ID OFF
ENABLE_X86_RELAX_RELOCATIONS OFF
FIREFOX_EXECUTABLE FIREFOX_EXECUTABLE-NOTFOUND
GLEW_DIR GLEW_DIR-NOTFOUND
GLEW_FOUND ON
GOLD_EXECUTABLE /usr/bin/ld.gold
GO_EXECUTABLE GO_EXECUTABLE-NOTFOUND
GSL_CONFIG_EXECUTABLE GSL_CONFIG_EXECUTABLE-NOTFOUND
ICONV_LIBRARY_PATH /usr/lib/x86_64-linux-gnu/libc.so
LLVM_BUILD_TYPE Release
LZ4_FOUND ON

After configuration I got this and then I generated. I have repeated this 2 to 3 times but same is happening. TCanvas is not opening after this I tried jupyter notebook , after installation same is happening. I am sharing that error:
jupyter notebook
[I 15:27:22.576 NotebookApp] Serving notebooks from local directory: /home/pvarshney
[I 15:27:22.576 NotebookApp] Jupyter Notebook 6.5.2 is running at:
[I 15:27:22.576 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 15:27:22.800 NotebookApp] No web browser found: could not locate runnable browser.

Try the normal root, it should work.

$ root
$ root [0] TCanvas c;

This should give you an empty canvas.

It didn’t work.

pvarshney@DESKTOP-HJMTASQ:~$ . root-6.26.10-install/bin/thisroot.sh
pvarshney@DESKTOP-HJMTASQ:~$ root
   ------------------------------------------------------------------
  | Welcome to ROOT 6.26/10                        https://root.cern |
  | (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Nov 16 2022, 10:42:54                 |
  | From tags/v6-26-10@v6-26-10                                      |
  | With c++ (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0                   |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'       |
   ------------------------------------------------------------------

root [0] TCanvas c;
root [1]

Are you using ROOT remotely, via ssh?

No, I am using root with window. both are working together.

Problem has been resolved.
Thank You!