警告:从当前目录名称猜测名称[src]

问题描述 投票:0回答:1

我跑步时

perl Makefile.PL

我知道

Warning: Guessing NAME [src] from current directory name.

这不是我想要的。我用

生成了这个Makefile
mojo generate makefile

看起来像,

use strict;
use warnings;

use ExtUtils::MakeMaker;

WriteMakefile(
  VERSION   => '0.01',
  PREREQ_PM => {'Mojolicious' => '8.30'},
  test      => {TESTS => 't/*.t'}
);
perl makefile mojo
1个回答
0
投票

仅更新了WriteMakefile()以添加缺少的NAME

WriteMakefile(
  NAME      => 'MyApp',
  ...
);
© www.soinside.com 2019 - 2024. All rights reserved.