美文网首页
添加环境变量

添加环境变量

作者: uurr | 来源:发表于2018-08-29 09:35 被阅读0次

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

```

相关文章

网友评论

      本文标题:添加环境变量

      本文链接:https://www.haomeiwen.com/subject/ixhhwftx.html