
今天(2016 年 6 月 9 日),我剛剛在我的 Ubuntu 14.04.4 上安裝了 TeX Live 2016。安裝本身是成功的,但是當我嘗試為二進位檔案、資訊頁和手冊頁建立符號連結時,path
子命令tlmgr
失敗(我的意思是,退出狀態$?
在1
後面path add
)。然而奇怪的是,大多數符號連結都是在正確的目錄中建立的。這是我在終端機中所做的。
$ cd /path/to/installer
$ sudo ./install-tl
$ which tex
tex not found
$ sudo /usr/local/texlive/2016/bin/x86_64-linux/tlmgr path add
tlmgr: action path returned an error; continuing.
tlmgr: An error has occurred. See above messages. Exiting.
$ which tex
/usr/local/bin/tex
$ for file in $(ls /usr/local/texlive/2016/bin/x86_64-linux/); do; which $file; done | grep "not found"
xindy.mem not found
我讀有關的文檔path
,但我不明白我的程式出了什麼問題。
缺少xindy.mem
in$PATH
不會對我造成傷害,因為我不太可能使用xindy
軟體包,但是我的安裝發生了什麼?我需要做些什麼來解決這個問題嗎?
注意(我不確定這是否有幫助):幾個月前,在我的 El Capitan 上安裝 TeX Live 2015 效果很好(tlmgr
當然,路徑不同)。
2016年6月10日,我嘗試重新安裝TeX Live 2016,並且可以重現與昨天相同的問題。
$ sudo /usr/local/texlive/2016/bin/x86_64-linux/tlmgr path remove
tlmgr: action path returned an error; continuing.
tlmgr: An error has occurred. See above messages. Exiting.
$ which tex
tex not found
$ sudo mv /usr/local/texlive/2016 /usr/local/texlive/2016_bak
$ cd /path/to/installer
$ sudo ./install-tl
$ which tex
tex not found
$ sudo /usr/local/texlive/2016/bin/x86_64-linux/tlmgr update --self --all
$ sudo /usr/local/texlive/2016/bin/x86_64-linux/tlmgr path add
tlmgr: action path returned an error; continuing.
tlmgr: An error has occurred. See above messages. Exiting.
$ which tex
/usr/local/bin/tex
$ LANG=C; for file in $(ls /usr/local/texlive/2016/bin/x86_64-linux/); do; ls /usr/local/bin/$file; done | grep "No such file or directory"
ls: cannot access /usr/local/bin/man: No such file or directory
關於最後一行,我的 El Capitan 上的 TeX Live 2015 給出了相同的結果。因此, path add
Linux 上的錯誤似乎有問題。
$ for file in $(ls /usr/local/texlive/2015/bin/x86_64-darwin/); do; ls /usr/local/bin/$file; done | grep "No such file or directory"
ls: /usr/local/bin/man: No such file or directory
答案1
current 中存在一個錯誤tlmgr
(或至少兩個更好),該錯誤會在操作期間傳回錯誤tlmgr path add
。感謝您的報告,我會修復它(在適當的時候)。我檢查了原始程式碼,但沒有發現任何明顯的錯誤,但我最終會修復它,因為我看到相同的行為。
為什麼在你這邊 xindy.mem 沒有連結很奇怪,因為在我的情況下它確實是連結的。
希望有幫助
諾伯特