添加环境变量

2018-08-29  本文已影响0人  uurr

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

```

上一篇 下一篇

猜你喜欢

热点阅读