I am trying to install GEANT4, version 11.1.1 in my ubuntu system

I am a newbie with all these things, so pardon me if with any technical mistake. I tried to install GEANT in my system, and now, I am trying to execute example B1 to check if it’s been installed properly or not, but I think it’s not because I am getting this error. Please help me to solve this.
Also, I tried re-installing this several times, but still it doesn’t work.

_Geant4 Version:_v11.1.1
_Operating System:_Ubuntu 22.04.2 LTS, 64 bit
_Compiler/Version:_11.4.0
_CMake Version:_cmake version 3.22.1

nustar@nustar-PowerEdge-R550:~/software/GEANT4/geant4-v11.1.1/examples/basic/B1/BUILD$ ./exampleB1
Available UI session types: [ Qt, tcsh, csh ]
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted (core dumped)


A similar problem was reported here:Error running example B1: qt.qpa.xcb: could not connect to display

and some resolution externally here:

These were on Ubuntu within WSL, but there are some things to try in that latter post related to checking that the X server is running.

Thank you so much for responding and sharing these links with me. Been trying these solutions on my system but none seems to work for me yet. I’ll post soon if this works.
Thank you again!

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