Monday, 4 June 2007

EGSnrc and BeamNRC Installation

OS: Ubuntu 7.04

Install EGSnrc and BeamNRC:
  1. Install required software via Synaptic Package Manager;
  2. Install QT3.3.3; (Note GUI of EGSnrc was written under QT3, so it is incompatible with QT4) [add QTDIR=/usr/local/qt; MANPATH=$QTDIR/doc/man:$MANPATH; LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH; into /etc/bash.bashrc]
  3. Install EGSnrc and then BeamNRC using the method1 (the easiest method); [add HEN_HOUSE=/usr/local/EGSnrc; EGS_HOME=/usr/local/EGS_HOME; EGS_CONFIG="/usr/local/EGSnrc/specs/i686-pc-linux-gnu-g77.conf"; PATH=${HEN_HOUSE}/bin/i686-pc-linux-gnu-g77:${QTDIR}/bin:${PATH}; export QTDIR HEN_HOUSE EGS_HOME PATH MANPATH LD_LIBRARY_PATH EGS_CONFIG; into /etc/bash.bashrc before installation]
Addition: QT3.3.3 installation
  • Modify configure and find freetype and switch it off;
  • Add qt.conf under /etc/ld.so.conf.d with contents “/usr/local/qt/lib“;
  • Use ldconfig to reload;
After installation of EGSnrc and BEAMnrc, run script /usr/local/EGSnrc/scripts/finalize_egs_foruser and /usr/local/EGSnrc/scripts/finalize_beam_foruser
and add
EGS_HOME=/home/userhome/egsnrc/
EGS_CONFIG=/usr/local/EGSnrc/specs/i686-pc-linux-gnu-g77.conf
export EGS_HOME EGS_CONFIG

export OMEGA_HOME=/usr/local/EGSnrc/omega
. /usr/local/EGSnrc/scripts/egsnrc_bashrc_additions
. /usr/local/EGSnrc/scripts/beamnrc_bashrc_additions
into ~/.bashrc

Now installation is finished.

4 comments:

Anonymous said...

Many thanks for the example. Is it possible to get in contact with you? Did you also install egsnrc on Ubuntu Hardy?

Best regards, Marcus (kontakt(at)marcus-fischer.com).

QLD physics said...

Ditto. Can you give us any advice for installing egsnrc on Ubuntu 9?

Thanks

Freddy Perez said...

I'm having trouble to install the EGSnrc on Scientific Linux 6.1, can you tell how to make the script that configures the EGSnrc environment please!

Greenhorn said...

hey i am trying VARMLC CM.....but problem is by default the tongue is at left side...if i wanted to do them in right side them what is way??? pl. do it fast....