2

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

muru
  • 207,228

1 Answers1

0
echo 'export PATH="$PATH:/home/$USER/.openmpi/bin"' | tee -a /home/$USER/.bashrc

and

echo 'export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/$USER/.openmpi/lib/"' | tee -a /home/$USER/.bashrc