imapsync/INSTALL.d/INSTALL.Ubuntu.txt
INSTALL.d)/INSTALL.Ubuntu.txt is missing the package libjson-webtoken-perl
This is listed as optional in the instructions below, with a method for installing via CPAN, but in fact 'make install' fails without this package, so probably best to include it in the list of Ubuntu packages.
After running "apt install libjson-webtoken-perl", 'make install' completes successfully.
Tested on Ubuntu 20.04
Thanks! Fixed upstream.
It seems you also need libcrypt-openssl-rsa-perl. Without that package „make testp“ fails and authentication through json doesn't work.
Failure: Not found Perl module Crypt::OpenSSL::RSA
Ok: Found Perl module JSON::WebToken
Failure: Not found Perl module JSON::WebToken::Crypt::RSA
Also there is one more failure of „make testp“, but this doesn't affect imapsync's ability to synchronize:
Failure: Not found Perl module CGI
This CGI problem can be solved by installing libcgi-pm-perl
Tested on fresh Ubuntu 20.04 and 22.04
Thanks, updated upstream https://imapsync.lamiral.info/INSTALL.d/INSTALL.Ubuntu.txt
....
sudo apt-get install \
libauthen-ntlm-perl \
libclass-load-perl \
libcrypt-openssl-rsa-perl \
CGI is optional.
on Ubuntu 20 with imapsync version 2.2 I also found I could not execute the webserver perl script as it gave the following:
./webserver Base class package "Net::Server::HTTP" is empty. (Perhaps you need to 'use' the module which defines that package first, or make that module available in @INC (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base). at ./webserver line 6. BEGIN failed--compilation aborted at ./webserver line 6.
The following line is the problem
use base qw(Net::Server::HTTP);
The solution on Ubuntu 20 is
sudo apt install libnet-server-perl
Could add this dependency to the INSTALL.Ubuntu.txt file
./webserver sudo apt install libnet-server-perl
I started a document to talk about it. Feel free to suggest updates on it and on the webserver.
https://imapsync.lamiral.info/INSTALL.d/INSTALL.webserver.txt
...
The script named webserver in the top directory is a small web server
dedicated to offer the visual interface. It is experimental and it is
for now a plain text HTTP server (ie, not https).
Dependencies to run webserver on Debian/Ubuntu distributions:
sudo apt install libnet-server-perl