安装 textlive 2015

去官网 http://www.tug.org/texlive/acquire-netinstall.html 下载安装包install-tl-unx.tar.gz (3.3mb) ,解压

sudo ./install-tl

如果报错

Can't locate Digest/MD5.pm in @INC (@INC contains: ./tlpkg /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at tlpkg/TeXLive/TLUtils.pm line 202.
BEGIN failed--compilation aborted at tlpkg/TeXLive/TLUtils.pm line 202.
Compilation failed in require at ./install-tl line 53.
BEGIN failed--compilation aborted at ./install-tl line 53.

是因为有一些 perl 的包没有安装,

sudo yum install perl-Tk perl-Digest-MD5

之后就可以正常安装了。安装时终端上会显示字符交互界面,统一期间,我们把软件尽量安装在student账号下面,所以先后按下d1设置安装路径

New value for TEXDIR [/usr/local/texlive/2015]: /home/student/textlive_2015/texlive

输出

Directories setup:

 <1> TEXDIR:       /home/student/textlive_2015/texlive
     support tree: /home/student/textlive_2015/texlive/texmf-dist

 <2> TEXMFLOCAL:     /home/student/textlive_2015/texlive/texmf-local
 <3> TEXMFSYSVAR:    /home/student/textlive_2015/texlive/texmf-var
 <4> TEXMFSYSCONFIG: /home/student/textlive_2015/texlive/texmf-config

 <5> TEXMFVAR:       ~/.texlive2015/texmf-var
 <6> TEXMFCONFIG:    ~/.texlive2015/texmf-config
 <7> TEXMFHOME:      ~/texmf

 Note: ~ will expand to $HOME (or to %USERPROFILE% on Windows)

看来的确已经设置好目录,再按下ri开始安装,需要在线下载3150项,花了三个小时在线安装完毕

sudo vi /etc/profile

增加如下内容

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

保存并退出后

source /etc/profile

你可能感兴趣的:(ubuntu,latex)