Sorry if it is an extremely stupid noob question, but I am not an expert and I cannot find any adequate response on this or other forums.
I am running Ubuntu 18.04 x64 and I'm working with Intel Compilers. In order to keep my system and the compilation of my software consistent I've set my .bashrc to set the Intel compilers as default.
source /opt/intel/parallel_studio_xe_2018.2.046/bin/psxevars.sh export CC='/opt/intel/bin/icc' export CXX='/opt/intel/bin/icpc' export FC='/opt/intel/bin/ifort' export F77='/opt/intel/bin/ifort' export CFLAGS='-O3 -xHost -ip' export CXXFLAGS='-O3 -xHost -ip' export FCFLAGS='-O3 -xHost -ip'
Now, if I do this I cannot start MATLAB R2017b. Every time I start it it clashes with the Intel compilers and aborts the startup with the error:
symbol lookup error: /opt/intel/compilers_and_libraries_2018.2.199/linux/compiler/lib/intel64/libirng.so: undefined symbol: __intel_skx_avx512_memcpy
The only way I have to get MATLAB to work is to comment out the above variables in my .bashrc file, source it and start MATLAB.
This of course crazy and I was wondering if it was possible to actually have, for example, a .desktop files that ignores .bashrc or if there's any other way to have those environmental variables up and running, but have a software ignoring them.