On my freshly installed Debian 9 (Linux 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19) x86_64 GNU/Linux), when I followed the instruction (without the libfile-tail-perl), I got the below error message when I ran imapsync (git cloned from the commit id f9a77ee223 which was commited on Tue Jul 2 18:34:23 2019 -0500) for the first time. But, after I had installed libfile-tail-perl package, I could successfully run imapsync.
"""
Can't locate File/Tail.pm in @INC (you may need to install the File::Tail module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./imapsync line 840.
BEGIN failed--compilation aborted at ./imapsync line 840.
"""
Resolve error:
Can't locate IO/Socket/INET6.pm in @INC (you may need to install the IO::Socket::INET6 module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/bin/imapsync line 713.
BEGIN failed--compilation aborted at /usr/bin/imapsync line 713.
In Debian 9, just tried with a fresh server, if you omit "libio-socket-inet6-perl", you get
"""
root@jarjar:~# ./imapsync
Can't locate IO/Socket/INET6.pm in @INC (you may need to install the IO::Socket::INET6 module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./imapsync line 676.
BEGIN failed--compilation aborted at ./imapsync line 676.
"""
Maybe because my machine has IPv6?