Every new instance of terminal forces me to export openmpi path before using it. I tried setting the path permanently using
echo export PATH="$PATH:/home/$USER/.openmpi/bin" >> /home/$USER/.bashrc
echo export
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/$USER/.openmpi/lib/">> home/$USER/.bashrc
However, this is not working. Please suggest a solution.
Thank you
export PATH="$PATH:/home/$USER/.openmpi/bin"
in~/.bashrc
you must put single quotes into the command:echo 'export PATH="$PATH:/home/$USER/.openmpi/bin"' >> /home/$USER/.bashrc
. In other case variables will be substituted by their values. – pa4080 Jan 07 '17 at 11:58