Replies: 1 comment 4 replies
|
This is due to the space in your path "Fayzan Ahmed". Please install EGSnrc in a path with no spaces, and as short as possible. E.g. |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Hello, hope you all are fine. I am totally new to the EGSnrc and wanted to learn the MC simulation for radiation trasnport but it seems the installation of the EGSnrc is quite challenging.
I am trying to install the EGSnrc according to instructions and some videos on YouTube but failed to install it "EGSnrc-configure-windows".
Please help me out with some simple solutions.
This I have as compiler
"C:\Users>g++ --version
g++ (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
C:\Users>gfortran --version
GNU Fortran (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
C:\Users>gcc --version
gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
The Tclsh installed is
"% puts $tcl_version
8.6"
The error is appearing in "EGSnrc-configure-windows"
GNU Fortran (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 7.3.0
Using xml test file C:\Users\Fayzan Ahmed\EGSnrc\HEN_HOUSE\pieces\tests_win.xml
===> Checking for availability of system dependent functions
Can the compiler produce object files? .................... yes
Can the compiler produce executables? ..................... yes
Does "exit" or "exit_" work properly? ..................... yes [exit]
Compiling "egs_exit.c" since "exit" and "stop" failed ?... yes
Does the "system" function return an exit status ? ........ yes
Is "flush" or "flush_" available? ......................... yes [flush]
Is the "date_and_time" subroutine available ? ............. yes
Is "fdate" or "fdate_" subroutine available? .............. yes [fdate]
Is "secnds" or "secnds_" function available? .............. yes [secnds]
Is "date" or "date_" subroutine available? ................ no
Is "time" or "time_" subroutine available? ................ no
Is "etime" or "etime_" function available? ................ yes [etime]
Is function "lnblnk" available? ........................... yes
Does "hostnm" or "hostnm_" work properly? ................. yes [hostnm]
Is "lstat" available and does it work properly? ........... no
Does "inquire" work properly? ............................. yes
Compiling a C program to find out the file size ?......... yes
Is record length known? ................................... yes [4]
Is "integer8" available? ................................. yes [integer8]
Is "integer2" available? ................................. yes [integer2]
Can endianess of machine be determined?.................... yes [little endian]
Compiling a C program to find out the name mangling scheme ? yes
Is the name mangling scheme known ?........................ yes [lower case, _ and _]
************ Tests concluded ! *******
===> Creating C Utilities for EGSnrc...
Building the utilities object file ...
Could egs_c_utils.c be compiled? .......................... no
Could load_beamlib.c be compiled? ......................... no
Could load_vculib.c be compiled? .......................... no
Could read_write_pardose.c be compiled? ................... no
Failed to compile egs_c_utils.c. This may be due to a variety of reasons
(e.g. non-standard include files, unsupported file lock operations, etc.
Will disable now the availability of a C compiler.
If you want to try to make the new parallel processing implementation in
cavrznrc and dosrznrc work,
C compiler
REPLACE {$HAVE_C_COMPILER(#);} WITH {{EMIT;{P1}define HAVE_C_COMPILER};}
in machine.macros
$HAVE_C_COMPILER(#);
near the beginning of your user code.
change the variable C_FLAGS in the spec file $conf_file in the
$HEN_HOUSE/specs/ directory.
**** Failed to compile load_beamlib.c!!! ****
This is the tool for loading BEAM as a particle source for other user codes.
Failed compiling read_write_pardose.c!
This is required to compile DOSXYZnrc!
Testing egs_c_utils skipped due to previous errors...
Testing load_beamlib skipped due to previous errors...
===> Creating configuration file ...
===> Creating machine.macros ...
*** System file C:\Users\Fayzan Ahmed\EGSnrc\HEN_HOUSE\lib\win3264\machine.macros successfully created ***
===> Creating machine.f ...
===> Creating machine.mortran ...
*** System file C:\Users\Fayzan Ahmed\EGSnrc\HEN_HOUSE\lib\win3264\machine.mortran successfully created ***
===> Creating dosxyznrc_win3264.spec ...
failed
Failed creating dosxyz_win3264.spec
file. You will not be able to use
DOSXYZnrc for in-phantom dose calculations.
===> Appending VCU library to dosxyznrc_win3264.spec ...
failed
Failed finding load_vculib You will not be able to use
VCU source 20.
===> Compiling Mortran3 ...
Makefile:31: Ahmed\EGSnrc\HEN_HOUSE\specs\win3264.conf: No such file or directory
mingw32-make: *** No rule to make target 'Ahmed\EGSnrc\HEN_HOUSE\specs\win3264.conf'. Stop.
Compilation failed!
===> Compiling Pegs4 ...
Makefile:32: Ahmed\EGSnrc\HEN_HOUSE\specs\win3264.conf: No such file or directory
mingw32-make: *** No rule to make target 'Ahmed\EGSnrc\HEN_HOUSE\specs\win3264.conf'. Stop.
Compilation failed!
***** EGSnrc installation FAILED, see log file for details *****
Wed May 14 2025 14:14:12
All reactions