I am asking this to hold collateral damage to a minimum, collateral
damage in this case being all the stupid things we do when stuff
breaks and documentation isn't clear about what is the shortest
and safest path to restore functionality.

        I upgraded a debian bullseye system to debian bookworm
which is not what this list is about and everything else worked
as advertised except perl which is totally broken right now.

After using perl for about ten years, it has become my goto
solution for many varied projects such as controlling radio
scanners that have RS-232 style interfaces and for munching text
from all kinds of outputs so that the text fits some other
purpose that nobody else cares about but solves the problem at hand.

        There's even an app I wrote to hangup on telemarketers
and scammers which has collected about 460 pillars of the
community that like to make junk phone calls at dinner time.

        I installed cpanplus with apt in debian and went from
there, with cpanplus being the only perl package I got from the
debian repository.
All other perl modules have been installed over time using
that cpanplus application as in
cpanp -i [module name].

        After upgrading from debian 11 (bullseye) to debian 12
(bookworm), the world changed and everything perl broke.

        My hope is to get perl back with a minimum of redundant
work.

        I found documentation about how to install perl on a
new debian bookworm system but little to none on how to move an
existing installation to the new world which makes me wonder what
went wrong.

        The output of the present perl -v command follows:

This is perl 5, version 36, subversion 0 (v5.36.0) built for 
x86_64-linux-gnu-thread-multi
(with 53 registered patches, see perl -V for more detail)

Copyright 1987-2022, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at https://www.perl.org/, the Perl Home Page.

        If I run any perl applications, all break with error
squawks regarding the first module in that particular app that
can not be located.

        The app I wrote to control radio scanners is named p2 so

$ p2 sts

should produce the radio's status and did until the upgrade.
Now, it sends

Can't locate warnings/unused.pm in @INC (you may need to install the 
warnings::unused module) (@INC contains: /etc/perl 
/usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 
/usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 
/usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 
/usr/share/perl/5.36 /usr/local/lib/site_perl) at /home/martin/etc/p2 line 3.
BEGIN failed--compilation aborted at /home/martin/etc/p2 line 3.

So, if I try to use cpanp and re-add that module, I get:

1wb5agz martin tmp $ cpanp -i Warnings::Unused
ERROR] 'Warnings::Unused' does not contain an author part

[ERROR] Cannot find 'Warnings::Unused' in the module tree

No such module: Warnings::Unused
No modules found to operate on!
Nothing done

        That is obviously all balderdash but somewhere, there is
the correct module tree and when one runs the app in question, it
probably still works.  

        If I try to use debian's apt package manager to upgrade
cpanpplus, it tells me that what is there is the most recent
version.

        I did find a source package to bring perl 5.36.1 on to a
debian12 system.  It compiled, installed and ran with no
complaints at all but it's not a debian package which means that
if one goes that route, one will always have to watch upgrades
since it is a third-party package.

        It did show up when running perl -version and in attempts
to use it but the missing modules and other general
disfunctionality carried over so I uninstalled it so that we are
back to where we started.

        I either did something very wrong a long time ago which
has now cought up with me or I am missing something about the
upgrade process that only broke perl as far as I know.

        Thanks for any constructive ideas for getting perl back.

Martin McCormick

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to