imapsync icon indicating copy to clipboard operation
imapsync copied to clipboard

imapsync/INSTALL.d/INSTALL.Ubuntu.txt

Open plutocrat opened this issue 3 years ago • 5 comments

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

plutocrat avatar May 26 '22 04:05 plutocrat

Thanks! Fixed upstream.

gilleslamiral avatar May 31 '22 21:05 gilleslamiral

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

KEdas000 avatar Jun 02 '22 18:06 KEdas000

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.

gilleslamiral avatar Jun 03 '22 17:06 gilleslamiral

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

simmonsm avatar Jun 14 '22 13:06 simmonsm

./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

gilleslamiral avatar Jun 15 '22 12:06 gilleslamiral