ERROR: Unable to locate a modulefile for 'gcc/9.4.0'
Hi everyone. I don't have much experience on linux, and I have some problems on loading a module. I use a command like: module load gcc/9.4.0 but get a result like: ERROR: Unable to locate a modulefile for 'gcc/9.4.0'
What should I do next? And if I successfully load the module, can I use the command like: icc -o xxxxx? I will be appriciated if you can recommendate some books for beginners!
Thank you!
follow the steps below to set up the environment variable for linux
first type
module --versionif not showing anything, install it first check to see the correct modulepath and modulefiles. useecho $MODULEPATHto see the directories containing modulefiles. you will see directories where the module command will look for modulefiles typemodinfo -n gcc/9.4.0to see the full path to the module file and if it's not there, then you need to create one in your home directory or another modulepath.to load the module for gcc/9.4.0 use
module load gcc/9.4.0. this should set the environment variables and paths for using gcc-9 as your compiler. and yes, you can use theicc -0 xxxxxto compile your code with gcc-9for a deep understanding the following link will help: