No Such File or Directory Message from Bash at Terminal Start
Bash: /Opt/Intel/Composer_Xe_2011_Sp1.11.339/Mkl/Bin/Mklvars. Sh: No Such File or Directory Bash: /Opt/Intel/Composer_Xe_2011_Sp1.11.339/Mkl/Bin/Mklvars. Sh...
bash: /opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/mklvars.sh: No such file or directory
bash: /opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/mklvars.sh: No such file or directory
How do I solve this?
1 Answer
To find out where the /opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/mklvars.sh script name was specified, use grep:
cd ~/ && grep -nr '/opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/mklvars.sh'
cd /etc/ && grep -nr '/opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/mklvars.sh'
cd /opt/ && grep -nr '/opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/mklvars.sh'
There could be files such as ~/.bashrc, ~/.profile, /etc/bash.bashrc, /etc/profile, /etc/profile.d/*, /etc/environment, /etc/environment.d/*.
Try to comment out such strings in one of these files if you'll find them.
You could also try to create not existent directory structure and an empty file bash complains at:
sudo mkdir -p /opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/
sudo touch /opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/mklvars.sh
sudo chmod +x /opt/intel/composer_xe_2011_sp1.11.339/mkl/bin/mklvars.sh
This is only a workaround to get rid of annoying bash message we don't know where it come from.