Subject: | Undeclared dependency Tk |
Automatic installation of the module (e.g. with CPAN.pm and cpanm) fails if Tk is not yet installed:
...
Output from '/usr/bin/make test':
PERL_DL_NONLAZY=1 "/opt/perl-5.31.9/bin/perl5.31.9" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Failed test 'use TkGenerator;'
# at t/TkGenerator.t line 9.
# Tried to use 'TkGenerator'.
# Error: Can't locate Tk.pm in @INC (you may need to install the Tk module) (@INC contains: /home/cpansand/.cpan/build/2020022722/TkGenerator-00.1a-0/blib/lib /home/cpansand/.cpan/build/2020022722/TkGenerator-00.1a-0/blib/arch /opt/perl-5.31.9/lib/site_perl/5.31.9/x86_64-linux /opt/perl-5.31.9/lib/site_perl/5.31.9 /opt/perl-5.31.9/lib/5.31.9/x86_64-linux /opt/perl-5.31.9/lib/5.31.9 .) at /home/cpansand/.cpan/build/2020022722/TkGenerator-00.1a-0/blib/lib/TkGenerator.pm line 3.
# BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2020022722/TkGenerator-00.1a-0/blib/lib/TkGenerator.pm line 3.
# Compilation failed in require at t/TkGenerator.t line 9.
# BEGIN failed--compilation aborted at t/TkGenerator.t line 9.
# Looks like you failed 1 test of 1.
t/TkGenerator.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
...