
Imapsync를 설치하면 이 오류가 발생합니다.
perl -c imapsync || { echo; echo "Read the INSTALL file to solve Perl module dependencies!"; exit 1; }
Can't locate IO/Tee.pm in @INC (you may need to install the IO::Tee module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at imapsync line 591.
BEGIN failed--compilation aborted at imapsync line 591.
Read the INSTALL file to solve Perl module dependencies!
make: *** [testp] Fout 1
이 문제를 어떻게 해결할 수 있나요?
답변1
imapsync16.04 Xenial(신규/기본 설치)에서 다음을 수행하십시오.
sudo apt-get install libio-tee-perl
sudo apt-get install libmail-imapclient-perl
sudo apt-get install libterm-readkey-perl
sudo apt-get install libunicode-string-perl
## The rest is optional I believe:
sudo apt-get install libcrypt-openssl-rsa-perl
sudo apt-get install libauthen-ntlm-perl
sudo apt-get install libdata-uniqid-perl
sudo apt-get install libjson-perl
sudo apt-get install liblwp-online-perl
## For Xenial/16.04 I could not locate these packages nor would 'cpan'
## work for me - but you could try (as user running imapsync):
cpan install JSON::WebToken
cpan install Filesys::DfPortable
그런 다음 테스트하십시오.
./imapsync --dry --host1 localhost --user1 1@localhost --password1 1 --host2 localhost --user2 2@localhost --password2 2
오류 출력 내에 모듈 목록이 표시되어야 합니다.
Modules version list:
Mail::IMAPClient 3.38
IO::Socket 1.38
IO::Socket::IP 0.37
IO::Socket::INET 1.35
IO::Socket::SSL 2.024
Net::SSLeay 1.72
Compress::Zlib 2.068
Digest::MD5 2.54
Digest::HMAC_MD5 1.01
Digest::HMAC_SHA1 1.03
Term::ReadKey 2.33
File::Spec 3.56
Time::HiRes 1.9726
Unicode::String 2.09
IO::Tee 0.64
File::Copy::Recursive 0.38
Authen::NTLM 1.09
URI::Escape 3.31
Data::Uniqid 0.12
JSON 2.90
JSON::WebToken ?
Crypt::OpenSSL::RSA 0.28
LWP 6.15
HTML::Entities 3.69
Filesys::DfPortable ?
TLS를 사용하는 14.04/16.04 Dovecot 시스템에서 위 패키지 설치를 사용하여 imap 동기화가 작동했음을 확인할 수 있습니다. 앞서 언급했듯이 기본 수준에서 작동하려면 나열된 첫 번째 항목만 필요할 수 있습니다. 필요한 Perl 모듈은 기본적으로 14.04 새로 설치에서 동일해야 합니다.
답변2
로깅을 위한 종속성이 추가되었습니다.
다음을 사용하여 설치하세요.
sudo apt-get install libio-tee-perl
다음이 필요할 수도 있습니다.
sudo apt-get install libunicode-string-perl