"Can't locate Carton/CLI.pm" after upgrade Ubuntu 20.04→22.04
I upgraded the Ubuntu hosting Lufi from 20.04 to 22.04, and since then, I cannot get it to run anymore.
cd ~lufi/lufi/
sudo cpan Carton
carton install --deployment --without=test --without=postgresql --without=mysql
Can't locate Carton/CLI.pm in @INC (you may need to install the Carton::CLI module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /usr/local/bin/carton line 4.
BEGIN failed--compilation aborted at /usr/local/bin/carton line 4.
If I install Ubuntu's own carton
package, I get this error:
carton --version
carton v1.0.34
sudo carton install --deployment --without=test --without=postgresql --without=mysql
Installing modules using /home/lufi/lufi/cpanfile (deployment mode)
Successfully installed Mojolicious-Plugin-FiatTux-GrantAccess-0.08
1 distribution installed
Complete! Modules were installed into /home/lufi/lufi/local
sudo carton exec hypnotoad script/lufi
SSLeay.c: loadable library and perl binaries are mismatched (got handshake key 0xcd00080, needed 0xeb00080)
Do you have an idea to fix this?