Saturday, January 2, 2016

Linux 下添加 PATH or MANPATH or INFOPATH 环境变量

直接编辑 profile 文件

$ sudo vim /etc/profile

在最后,添加:

export PATH="/usr/local/texlive/2015/bin/armhf-linux:$PATH"

保存,退出,然后运行:

$ sudo source /etc/profile

或者

$ sudo vim /etc/bash.bashrc

在最后,添加:

PATH=/usr/local/texlive/2015/bin/armhf-linux/:$PATH; export PATH
MANPATH=/usr/local/texlive/2015/texmf-dist/doc/man:$MANPATH; export MANPATH
INFOPATH=/usr/local/texlive/2015/texmf-dist/doc/info:$INFOPATH; export INFOPATH

单独添加 INFOPATH 环境变量

$ sudo vim /etc/manpath.config
MANPATH_MAP /usr/local/texlive/2015/bin/armhf-linux /usr/local/texlive/2015/texmf-dist/doc/man

参考资料:http://bit.ly/1OyBziZ

via Chu's Space http://bit.ly/1YUDYiZ

Powered by Blogger Skins. Theme: TheBuckmaker | Free Wordpress Templates. Presents HD TV Futurama Streaming. Featured on Wedding Dresses.