Error running geant4.csh

Please fill out the following information to help in answering your question, and also see tips for posting code snippets. If you don’t provide this information it will take more time to help with your problem!

Geant4 Version: geant4-v11.2.1
_Operating System:_macpro. Ventura. 13.6.5
Compiler/Version: gcc version 14.0.3
_CMake Version:_cmake version 3.23.2

I am new to Geant, I download, built and installed he software.
Used: cmake -DCMAKE_INSTALL_PREFIX= -DGEANT4_BUILD_MULTITHREADED=ON -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_QT=ON …/geant4-v11.2.1

However when I tried to source geant4.csh o set the environment I got errors:

-bash: /Users/myG4/Install/bin/geant4.csh: line 27: syntax error near unexpected token `(’

-bash: /Users/myG4/Install/bin/geant4.csh: line 27: `set ARGS=($_)’

Please may I have solution for this?
hank you.

Hi:

I think the default shell of MacOS is zsh. So maybe you can try sourcing geant4.sh insteand. It has the same effect as geant4.csh.