我一直在用pp
不久前!
但是,在租用另一个主机时,当我运行 pp 命令时,脚本不会在服务器上运行
CentOS Linux 版本 7.9.2009 (Core) Perl v 5.32.1
使用 pp 命令,host old
$ pp -x -c name.pl
跑步时
./a.out
Unable to open html entities file (/tmp/par-726f6f74/cache-78cdefedff4d2afddea0035addc3b570c8f0bfd5/inc/lib/Mojo/resources/html_entities.txt): No such file or directory at script / name.pl line 13.
Compilation failed in require at script / name.pl line 13.
BEGIN failed - compilation aborted at script / name.pl line 13.
当我运行它时,./name.pl
它运行正常。
有什么建议吗?
名称.pl
#!/usr/bin/perl
use FindBin qw($Bin);
use lib ("$Bin");
use DBI;
use Number::Format;
use Encode qw(decode encode);
use File::Basename;
use Mojo::Util qw(b64_encode b64_decode url_escape url_unescape);
use Mojo::JSON qw(decode_json encode_json);
use Image::ExifTool;
use LWP;
print "Test Mojo";
同样的命令在另一个服务器/主机上的版本 5.28 中正常工作