- 已编辑
yihui 都能运行正常,但是终端里 tex -v
没有反应,应该是路径没加上,测试环境是拉取 rocker/tidyverse
镜像,里面不包含TeX套件
> tinytex::install_tinytex(TRUE, repository = 'http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet')
trying URL 'https://github.com/yihui/tinytex/raw/master/tools/install-unx.sh'
Content type 'text/plain; charset=utf-8' length 604 bytes
==================================================
downloaded 604 bytes
Downloading install-tl-unx.tar.gz to /tmp ...
Automated TeX Live installation using profile: ../texlive.profile
Loading http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet/tlpkg/texlive.tlpdb
Installing TeX Live 2017 from: http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet (not verified)
Platform: x86_64-linux => 'GNU/Linux on x86_64'
Distribution: net (downloading)
Using URL: http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet
Directory for temporary files: /tmp/GQudatKm4j
Installing to: ./
Installing [1/7, time/total: ??:??/??:??]: hyphen-base [22k]
Installing [2/7, time/total: 00:00/00:00]: kpathsea [31k]
Installing [3/7, time/total: 00:00/00:00]: kpathsea.x86_64-linux [46k]
Installing [4/7, time/total: 00:00/00:00]: tetex [70k]
Installing [5/7, time/total: 00:00/00:00]: tetex.x86_64-linux [1k]
Installing [6/7, time/total: 00:00/00:00]: texlive.infra [203k]
Installing [7/7, time/total: 00:00/00:00]: texlive.infra.x86_64-linux [90k]
Time used for installing the packages: 00:01
running mktexlsr ./texmf-dist ...
writing fmtutil.cnf to ./texmf-dist/web2c/fmtutil.cnf
writing updmap.cfg to ./texmf-dist/web2c/updmap.cfg
writing language.dat to ./texmf-var/tex/generic/config/language.dat
writing language.def to ./texmf-var/tex/generic/config/language.def
writing language.dat.lua to ./texmf-var/tex/generic/config/language.dat.lua
running mktexlsr ./texmf-var ./texmf-config ./texmf-dist ...
running updmap-sys --nohash ...done
re-running mktexlsr ./texmf-var ./texmf-config ...
pre-generating all format files, be patient...
running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --no-strict --all ...done
running package-specific postactions
finished with package-specific postactions
Logfile: ./install-tl.log
tlmgr: setting default package repository to http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet
tlmgr: package repository http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet (not verified: gpg unavailable)
tlmgr: no updates available
tlmgr: package repository http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet (not verified: gpg unavailable)
[1/19, ??:??/??:??] install: babel [134k]
[2/19, 00:00/00:00] install: cm [233k]
[3/19, 00:00/00:00] install: etex [12k]
[4/19, 00:00/00:00] install: knuth-lib [30k]
[5/19, 00:00/00:00] install: latex [161k]
[6/19, 00:00/00:00] install: latex-bin.x86_64-linux [1k]
[7/19, 00:00/00:00] install: latex-bin [1k]
[8/19, 00:00/00:00] install: latex-fonts [18k]
[9/19, 00:00/00:00] install: latexconfig [5k]
[10/19, 00:00/00:00] install: luatex.x86_64-linux [3442k]
[11/19, 00:02/00:05] install: luatex [13k]
[12/19, 00:02/00:05] install: pdftex.x86_64-linux [763k]
[13/19, 00:02/00:04] install: pdftex [36k]
[14/19, 00:02/00:04] install: plain [60k]
[15/19, 00:02/00:04] install: tex-ini-files [4k]
[16/19, 00:02/00:04] install: unicode-data [220k]
[17/19, 00:02/00:04] install: xetex.x86_64-linux [6880k]
[18/19, 00:06/00:06] install: xetex [7k]
[19/19, 00:06/00:06] install: xetexconfig [1k]
running mktexlsr ...
done running mktexlsr.
running updmap-sys ...
done running updmap-sys.
regenerating fmtutil.cnf in /tmp/texlive/texmf-dist
running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --no-error-if-no-format --byengine pdftex ...
done running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --no-error-if-no-format --byengine pdftex.
running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --no-error-if-no-format --byengine luatex ...
done running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --no-error-if-no-format --byengine luatex.
running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --no-error-if-no-format --byengine luajittex ...
done running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --no-error-if-no-format --byengine luajittex.
running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --no-error-if-no-format --byengine xetex ...
done running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --no-error-if-no-format --byengine xetex.
tlmgr: package log updated: /tmp/texlive/texmf-var/web2c/tlmgr.log
tlmgr: package repository http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet (not verified: gpg unavailable)
[1/49, ??:??/??:??] install: amscls [32k]
[2/49, 00:00/00:00] install: amsfonts [3542k]
[3/49, 00:02/00:11] install: amsmath [30k]
[4/49, 00:02/00:11] install: bibtex.x86_64-linux [70k]
[5/49, 00:02/00:10] install: bibtex [15k]
[6/49, 00:02/00:10] install: booktabs [3k]
[7/49, 00:02/00:10] install: caption [32k]
[8/49, 00:02/00:10] install: dvipdfmx.x86_64-linux [2k]
[9/49, 00:02/00:10] install: dvipdfmx [27k]
[10/49, 00:02/00:10] install: ec [258k]
[11/49, 00:02/00:10] install: etoolbox [8k]
[12/49, 00:02/00:10] install: euenc [4k]
[13/49, 00:02/00:10] install: fancyvrb [12k]
[14/49, 00:02/00:10] install: fontspec [26k]
[15/49, 00:02/00:09] install: framed [8k]
[16/49, 00:02/00:09] install: geometry [9k]
[17/49, 00:02/00:09] install: glyphlist [25k]
[18/49, 00:02/00:09] install: graphics [15k]
[19/49, 00:02/00:09] install: graphics-cfg [2k]
[20/49, 00:02/00:09] install: graphics-def [10k]
[21/49, 00:02/00:09] install: gsftopk.x86_64-linux [40k]
[22/49, 00:02/00:09] install: gsftopk [4k]
[23/49, 00:02/00:09] install: hyperref [106k]
[24/49, 00:02/00:09] install: ifluatex [3k]
[25/49, 00:02/00:09] install: iftex [2k]
[26/49, 00:02/00:09] install: ifxetex [2k]
[27/49, 00:03/00:14] install: l3kernel [125k]
[28/49, 00:03/00:13] install: l3packages [19k]
[29/49, 00:03/00:13] install: lm [11651k]
[30/49, 00:08/00:10] install: lualibs [72k]
[31/49, 00:08/00:09] install: luaotfload.x86_64-linux [1k]
[32/49, 00:08/00:09] install: luaotfload [432k]
[33/49, 00:09/00:10] install: makeindex.x86_64-linux [47k]
[34/49, 00:09/00:10] install: makeindex [5k]
[35/49, 00:09/00:10] install: mathspec [10k]
[36/49, 00:09/00:10] install: metafont.x86_64-linux [186k]
[37/49, 00:09/00:10] install: metafont [33k]
[38/49, 00:09/00:10] install: mfware.x86_64-linux [118k]
[39/49, 00:09/00:10] install: mfware [4k]
[40/49, 00:09/00:10] install: natbib [17k]
[41/49, 00:09/00:10] install: oberdiek [221k]
[42/49, 00:09/00:10] install: tipa [2809k]
[43/49, 00:10/00:10] install: titling [3k]
[44/49, 00:11/00:11] install: tools [39k]
[45/49, 00:11/00:11] install: upquote [2k]
[46/49, 00:11/00:11] install: url [6k]
[47/49, 00:11/00:11] install: xkeyval [13k]
[48/49, 00:11/00:11] install: xunicode [26k]
[49/49, 00:11/00:11] install: zapfding [46k]
running mktexlsr ...
done running mktexlsr.
running updmap-sys ...
done running updmap-sys.
regenerating fmtutil.cnf in /home/xiangyun/.TinyTeX/texmf-dist
running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --byfmt mf ...
done running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --byfmt mf.
tlmgr: package log updated: /home/xiangyun/.TinyTeX/texmf-var/web2c/tlmgr.log
TinyTeX installed to /home/xiangyun/.TinyTeX
Warning message:
In normalizePath("~/bin") :
path[1]="/home/xiangyun/bin": No such file or directory
> normalizePath("~/bin")
[1] "/home/xiangyun/bin"
> path.expand("~/bin")
[1] "/home/xiangyun/bin"
> Sys.getenv('HOME')
[1] "/home/xiangyun"
此外,还在 rocker/geospatial
测试,这个docker镜像自带 tinytex
,当前目录下本身不带 bin
目录的,发现如下情况,此时感觉警告信息是多余的
tinytex::tlmgr(
+ c('option', 'repository', 'https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet')
+ )
tlmgr option repository https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet
tlmgr: setting default package repository to https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet
Warning message:
In normalizePath("~/bin") :
path[1]="/home/xiangyun/bin": No such file or directory
> tinytex::tlmgr_install('fandol')
tlmgr install fandol
tlmgr: package repository https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet (not verified: gpg unavailable)
[1/1, ??:??/??:??] install: fandol [21077k]
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /opt/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr path add
Warning messages:
1: In normalizePath("~/bin") :
path[1]="/home/xiangyun/bin": No such file or directory
2: In normalizePath("~/bin") :
path[1]="/home/xiangyun/bin": No such file or directory