Re: Perl is now failing for me

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux