You are on page 1of 6

Installation Instruction of EGSnrc on Windows 8 or 10

1. Install MinGW
● Download MinGW --> * sourceforge.net/projects/mingw-w64/files/Toolchains
%20targetting%20Win64/Personal%20Builds/mingw-builds/

● Install downloaded file : "mingw-w64-install.exe"

2. Set Environment Variables

● Go to "Environment Variables" on Windows


Open Windows Explorer 🡪 properties 🡪Advanced system settigs 🡪

● Add new variable

Variable name =PATH


Variable value = C:\Program Files\mingw-w64\x86_64-7.1.0-posix-seh-rt_v5-rev0\mingw64\bin

3. Downloading and
Installing TCL

● Go to : www.activestate.com/activetcl/downloads

● Downloaded file : "ActiveTcl8.6.4.1.299124-win32-x86_64-threaded.exe"


● Next, install downloaded file. No specific setting required.

4. Download EGSnrc Master

● Go to : www.github.com/nrc-cnrc/EGSnrc/archive/master.zip

Downloaded file : "EGSnrc-master"

● Extract and rename “EGSnrc-master” to “EGSnrc”


● Move EGSnrc folder to specific path. For example “Local Disk (C:)

5. Install EGSnrc on Windows

● Go to : https://github.com/nrc-cnrc/EGSnrc/releases/download/v2017/EGSnrc-
configure-windows.exe
● Install “EGSnrc-configure-windows.exe”
● Open Windows Command Prompt
● Drag “EGSnrc-configure-windows.exe” to command prompt and press “Enter”
Set HEN_HOUSE location
(located in EGSnrc folder in
4th step)

Set EGS_home location


(create EGS_home folder in EGSnrc folder)

6. EGSnrc test using "tutor data (tutor1)"

Search for EGS_gui on windows search and run


● - Choose “Compile”.
- Set user code to “tutor 1” and click “Go”.
After compiling, this window will appear:

● - Choose “Execute”
- Set “Look in” to “HEN_HOUSE pegs area”.
- Search PEGS file to “tutor_data” .
- Click “Start”

After executing, this window will appear:


7. Download QtGrace for Visualization purposes

● Download QtGrace, https://sourceforge.net/projects/qtgrace/

● Install downloaded file : "qtgrace_v026_Win7.exe"

NOTE
More detail about installation instruction visit :
https://github.com/nrc-cnrc/EGSnrc/wiki/install-EGSnrc-on-windows

You might also like