export PATH=/usr/local/gsl/bin:${PATH}
export C_INCLUDE_PATH=/usr/local/gsl/include:${C_INCLUDE_PATH}
export LD_LIBRARY_PATH=/usr/local/gsl/lib:${LD_LIBRARY_PATH}
```
我选择用下列方式
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
```
网友评论