Installing a GUI for EGSnrc Usercodes
Ensure that your environment variables for EGSnrc are loaded (e.g.,
module load egs). For example
set HEN_HOUSE /usr/local/EGSnrc/$version/ set my_machine x86_64-unknown-linux-gnu-pgf77 setenv EGS_HOME /home/$USER/egsnrc/ setenv EGS_CONFIG $HEN_HOUSE/specs/x86_64-unknown-linux-gnu-pgf77.conf setenv HEN_HOUSE $HEN_HOUSE/ setenv my_machine $my_machine
There are plenty of others as well, but this will do for the example.
Go to the
/usr/local/EGSnrc/v4/gui/egs_inprz) and ensure you have QT installed (
echo $QTDIR). If so, you're ready to simply run the short
Login with a user account with X-forwarding available (e.g.,
ssh -X username@domain), start
egsgui and then then
[lev@tango ~]$ module load egs
[lev@tango ~]$ egsgui
[lev@tango ~]$ egs_inprz
A nice graphic window with then appear on your desktop a-waiting your usercodes.
In the original install for EGSnrc, the install script was, not surprisingly, run as root as this is an install for a cluster. However in the install_script, around 90% complete, and after the basic install is completed and noted as such, are the lines:
if test "x$USER" = xroot; then exit 0 fi
Yes, the script just exits, incomplete, without telling you or providing any warnings. Note that it does complete the basic install, and recommends the running of the end-user install script, and making modifications to .bashrc files etc, so it gives all the impressions that it's actually done.
So with an existing install, one should logon, as root, install the environment variables
module load egs, go into the gui directory of the HEN_HOUSE (
cd /usr/local/EGSnrc/v4/gui) and run
make there. That will install both egs_gui and egs_inprz with X-forwarding.