"Process finished with exit code 127" & "Cannot open shared object file: No such file or directory" [SOLVED]


Possible solution:




I'm trying to run GEANT4 project via CLION. It worked the first time, but suddenly just stopped sadly.

To read more about GEANT4: https://geant4.web.cern.ch/

I'm trying to run an executable after building the project with the GEANT4 libraries, yet I receive the following:

"/home/jordan/msc/software/geant4/geant4-work/g4test/cmake-build-debug/sim: error while loading shared libraries: libG4graphics_reps.so: cannot open shared object file: No such file or directory

Process finished with exit code 127"

I made sure that libG4graphics_reps.so does exist:

These are my environment variables:


The project builds just fine, and i can run the executable from the bash cli (and the project does update to changes), but when I press "run" in clion I get the mentioned errors.

Is there anything else that can be done?

1 comment

I think I've found a solution, consult the following link:




Please sign in to leave a comment.