On 2/19/22 11:02, Iosif Fettich wrote:
Hi Fulko,
> I'm not sure when it started, but on everything more complicated
> than print 'Hello World' my perl is failing.
> For example:
>
> $ perl -e 'use DateTime;'
> Attempt to reload List/Util.pm aborted.
> Compilation failed in require at
> /usr/share/perl5/vendor_perl/namespace/autoclean.pm line 11.
> BEGIN failed--compilation aborted at
> /usr/share/perl5/vendor_perl/namespace/autoclean.pm line 11.
> Compilation failed in require at
> /usr/lib64/perl5/vendor_perl/DateTime.pm line 9.
> BEGIN failed--compilation aborted at
> /usr/lib64/perl5/vendor_perl/DateTime.pm line 9.
> Compilation failed in require at -e line 1.
> BEGIN failed--compilation aborted at -e line 1.
>
> or
>
> $ cpan
> Attempt to reload Scalar/Util.pm aborted.
> Compilation failed in require at /usr/share/perl5/Safe.pm line 4.
> BEGIN failed--compilation aborted at /usr/share/perl5/Safe.pm line 4.
> Compilation failed in require at /usr/share/perl5/vendor_perl/CPAN.pm
> line 57.
> BEGIN failed--compilation aborted at
> /usr/share/perl5/vendor_perl/CPAN.pm line 57.
> Compilation failed in require at
> /usr/share/perl5/vendor_perl/App/Cpan.pm line 290.
> BEGIN failed--compilation aborted at
> /usr/share/perl5/vendor_perl/App/Cpan.pm line 290.
> Compilation failed in require at /usr/bin/cpan line 7.
> BEGIN failed--compilation aborted at /usr/bin/cpan line 7.
>
> Since I last saw it working, all I can do is remember
> upgrading to F35, or the daily updates.
>
> Can anyone suggest where to start?
> For example... Why is it trying to reload Scalar::Util?
>
Try to identify which cpan you're using (the one from Fedora repos
installed via dnf or the one from CPAN) and try to reinstall (or
remove...) that one.
Looks like you've mixed Perl modules installed from CPAN with others
installed from Fedora. That's not always working.
Maybe you get more clues trying the debugger as well,
$ perl -d -e 'use DateTime;'
Best regards,
Iosif Fettich
I have to agree with Iosif.
This reeks of mixed versions.
If this happened to me, I would delete every single
module and .precomp and perl itself, including those
in $HOME.
Then do a dnf install from the Fedora repo.