downloaded texlive 15 , at the end, the installer asked to do this:
- Add
/ usr / local / texlive / 2015 / TEXMF-DIST / DOC / MAN
inmanpath
. - Add
/ usr / local / texlive / 2015 / TEXMF-DIS / DOC / INFO
ininfopath
. - and most importantly, add
/ usr / local / texlive / 2015 / BIN / i386-Linux
In yourpath
for current and future sessions.
How to do it?
Answer 1, Authority 100%
Pretty simple way to register something in Path
– this is open file .bashrc
(or .zshrc
, or file for another used Shell) lying in the home directory (~ / .bashrc
), and add at the end:
# add texlive to path
Export Path = $ Path: / USR / Local / TEXLIVE / 2015 / BIN / i386-Linux
Export InfoPath = $ InfoPath: / USR / Local / Texlive / 2015 / TEXMF-DIST / DOC / INFO
EXPORT MANPATH = $ MANPATH: / USR / LOCAL / TEXLIVE / 2015 / TEXMF-DIST / DOC / MAN
In order for actions to take effect, you can either restart the terminal or enter
source ~ / .bashrc
Explanation:
Syntax
export var = $ var: path
Used for add new path to the variable. The symbol:
is a way to split paths in Linux. If only it was necessary to create a new variable, and not add the value to the permissible, the syntax would be easier:
export var = value
Answer 2, Authority 44%
How to do it?
Through colon:
export manpath = / usr / local / texlive / 2015 / TEXMF-DIST / DOC / MAN: $ MANPATH
EXPORT INFOPATH = / USR / LOCAL / TEXLIVE / 2015 / TEXMF-DIST / DOC / INFO: $ InfoPath
EXPORT PATH = / USR / LOCAL / TEXLIVE / 2015 / BIN / I386-LINUX: $ Path
In order not to perform these commands manually in each instance of Shell , you can add them to the end of your shell configuration file , which is called ~ /. Cr
. You can find out the name Shell or so:
$ echo $ shell
/ bin / bash
So, the file in which you can add commands: ~ / .bashrc
.