我如何从源代码构建 pdflatex?需要 Xaw 吗?

我如何从源代码构建 pdflatex?需要 Xaw 吗?

我正在使用 linuxppc64le(RHEL 8.3)编译 latex

../configure --prefix=$HOME/contrib/latex

我得到了构建失败

checking for Xaw headers... no
configure: error: Sorry, you will need at least the Xaw header/library files to compile xdvik.
=== configuring in xdvik failed
make[2]: *** [Makefile:921: recurse] Error 1
make[2]: Leaving directory '/home/jc6044/Documents/builds/latex/tugbuild/texk'
make[1]: *** [Makefile:491: all-recursive] Error 1
make[1]: Leaving directory '/home/jc6044/Documents/builds/latex/tugbuild/texk'
make: *** [Makefile:582: all-recursive] Error 1

所以我添加了配置选项

--without-x

但我没有在生成的构建结果中看到 pdflatex。

那么看来我可以将 pdftex 复制到 pdflatex,但为了使其工作,我需要 pdflatex.fmt,而我似乎无法生成它?

答案1

最后我按照以下说明进行操作https://www.tug.org/texlive/custom-bin.html在找到二进制文件后http://ftp.math.utah.edu/pub/texlive-utah/bin/ppc64le-linux.tar.xz

  • 进入您想要 texlive 的目录:
wget http://ftp.math.utah.edu/pub/texlive-utah/bin/ppc64le-linux.tar.xz
wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
tar xf install-tl-unx.tar.gz
perl install-tl-20201228/install-tl --custom-bin=$PWD/ppc64le-linux
  • 选择 d 并响应<curdir>/tetex/2020
  • 选择 1
  • 最后,
fmtutil-sys --all

相关内容