Windows11下从源码安装Perl编译VS Code .tex文件遇错求助
Windows 11下VS Code编译LaTeX的Perl依赖问题及源码安装失败
1. LaTeX编译错误
已在Windows 11的VS Code中安装MiKTeX和LaTeX扩展,但编译.tex文件时出现如下错误:
Sorry, but latexmk did not succeed for the following reason: MiKTeX could not find the script engine 'perl' which is required to execute 'latexmk'. Remedy: Make sure 'perl' is installed on your system.
2. 源码安装Perl的尝试及报错
按照提示从perl.org下载Perl源码(perl-5.40.0),并执行以下步骤:
tar -xzf perl-5.40.0.tar.gz cd perl-5.40.0 ./Configure -des -Dprefix=$HOME/localperl make make test make install
但运行./Configure -des -Dprefix=$HOME/localperl时出现错误:
Program 'configure.com' failed to run: The specified executable is not a valid application for this OS platform.At line :1 char:1 + ./Configure -des -Dprefix=$HOME/localperl + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~. At line:1 char:1 + ./Configure -des -Dprefix=$HOME/localperl + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException + FullyQualifiedErrorId : NativeCommandFailed
需求
- 解决Windows 11下源码安装Perl的问题
- 或找到无需Perl即可在VS Code编译LaTeX文档的方法
- 尽量避免安装Strawberry Perl或ActiveState Perl
内容的提问来源于stack exchange,提问作者Alesc Run
相关产品推荐
相关产品推荐

