Subject: | Undeclared dependency Tk |
Automatic installation of the module fails if Tk is not yet installed, so best is to declare Tk as dependency. Test log:
...
Output from '/usr/bin/make test':
PERL_DL_NONLAZY=1 "/opt/perl-5.28.2t/bin/perl" "-Iblib/lib" "-Iblib/arch" test.pl
1..12
# Running under perl version 5.028002 for linux
# Current time local: Thu Feb 27 23:48:40 2020
# Current time GMT: Thu Feb 27 22:48:40 2020
# Using Test.pm version 1.31
not ok 1
# Test 1 got: "Can't locate Tk.pm in @INC (you may need to install the Tk module) (@INC contains: blib/lib blib/arch /opt/perl-5.28.2t/lib/site_perl/5.28.2/x86_64-linux-thread-multi /opt/perl-5.28.2t/lib/site_perl/5.28.2 /opt/perl-5.28.2t/lib/5.28.2/x86_64-linux-thread-multi /opt/perl-5.28.2t/lib/5.28.2 .) at test.pl line 8.\n" (test.pl at line 9)
# Expected: "" (loading Tk module)
# test.pl line 9 is: ok($@, '', 'loading Tk module');
not ok 2
# Test 2 got: "Can't locate object method \"new\" via package \"Tk::MainWindow\" (perhaps you forgot to load \"Tk::MainWindow\"?) at test.pl line 12.\n" (test.pl at line 13)
# Expected: "" (Can't create MainWindow)
# test.pl line 13 is: ok($@, '', "Can't create MainWindow");
Undefined subroutine &Tk::Exists called at test.pl line 14.
make: *** [Makefile:843: test_dynamic] Error 2
...