I am Charmie

メモとログ

install imapsync on Ubuntu 18.04

The minimum set of commands are following to install imapsync.

sudo apt install git make cpanminus
git clone https://github.com/imapsync/imapsync.git
cd imapsync
sudo make install

However, I got the following error

What you have to do before using imapsync:
Install Perl module Crypt::OpenSSL::RSA
Install Perl module JSON::WebToken::Crypt::RSA
Here is a cpanm command to install missing Perl modules:
cpanm Crypt::OpenSSL::RSA JSON::WebToken::Crypt::RSA
Ok: Found cpanm cpanm (App::cpanminus) version 1.7043 (/usr/bin/cpanm)
Makefile:101: recipe for target 'testp' failed
make: *** [testp] Error 1

Checking INSTALL.d/INSTALL.Ubuntu.txt and this info, I further run the following commands:

sudo apt install        \
libauthen-ntlm-perl     \
libclass-load-perl      \
libcrypt-ssleay-perl    \
libdata-uniqid-perl     \
libdigest-hmac-perl     \
libdist-checkconflicts-perl \
libfile-copy-recursive-perl \
libio-compress-perl     \
libio-socket-inet6-perl \
libio-socket-ssl-perl   \
libio-tee-perl          \
libmail-imapclient-perl \
libmodule-scandeps-perl \
libnet-dbus-perl        \
libnet-ssleay-perl      \
libpar-packer-perl      \
libreadonly-perl        \
libregexp-common-perl   \
libsys-meminfo-perl     \
libterm-readkey-perl    \
libtest-fatal-perl      \
libtest-mock-guard-perl \
libtest-mockobject-perl \
libtest-pod-perl        \
libtest-requires-perl   \
libtest-simple-perl     \
libunicode-string-perl  \
liburi-perl             \
libtest-nowarnings-perl \
libtest-deep-perl       \
libtest-warn-perl       \
make                    \
cpanminus
sudo apt-get install libssl-dev
sudo cpanm Crypt::OpenSSL::RSA 
sudo cpanm Dist::CheckConflicts 
sudo cpanm JSON::WebToken::Crypt::RSA
sudo cpanm Regexp::Common 
sudo cpanm Sys::MemInfo

Then, sudo make install worked