I had problems with source /opt/intel/oneapi/setvars.sh
in my .bash_profile
script (which is normally launched at each shell login), in my Linux Ubuntu. Hence, I removed it from this file and added in my .bashrc
(launched each time you open a shell) the following command:
source /opt/intel/oneapi/setvars.sh --force > /dev/null
The --force
is necessary to avoid that message:
:: WARNING: setvars.sh has already been run. Skipping re-execution.
To force a re-execution of setvars.sh, use the '--force' option.
Using '--force' can result in excessive use of your environment variables.
The > /dev/null
redirection is to avoid having a message printed each time you open a terminal.