https://bugzilla.redhat.com/show_bug.cgi?id=1526063
Bug ID: 1526063 Summary: perl stops working after upgrade F26 -> F27 Product: Fedora Version: 27 Component: perl Severity: urgent Assignee: jplesnik@redhat.com Reporter: mutiny.mutiny@rediffmail.com QA Contact: extras-qa@fedoraproject.org CC: alexl@redhat.com, caillon+fedoraproject@gmail.com, iarnell@gmail.com, jplesnik@redhat.com, kasal@ucw.cz, mbarnes@fastmail.com, mmaslano@redhat.com, perl-devel@lists.fedoraproject.org, ppisar@redhat.com, psabata@redhat.com, rhughes@redhat.com, sandmann@redhat.com, tcallawa@redhat.com
Description of problem: I can'r run my perl scripts because of module errors. To solve them I tried to re-run my perl cpan script - which fails.
Version-Release number of selected component (if applicable): perl5 (revision 5 version 26 subversion 1)
How reproducible: Invoking cpan Steps to Reproduce: 1. Invoking cpan via command line 2. result: 3.
Actual results:
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 288. BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/App/Cpan.pm line 288. Compilation failed in require at /usr/bin/cpan line 7. BEGIN failed--compilation aborted at /usr/bin/cpan line 7.
Expected results: no error message.
Additional info:
invokib cowsay causes:
Can't load '/usr/local/lib64/perl5/auto/Encode/Encode.so' for module Encode: libperl.so.5.24: cannot open shared object file: No such file or directory at /usr/share/perl5/XSLoader.pm line 96. at /usr/local/lib64/perl5/Encode.pm line 10. Compilation failed in require at /usr/bin/cowsay line 18.
https://bugzilla.redhat.com/show_bug.cgi?id=1526063
--- Comment #1 from Donald O. mutiny.mutiny@rediffmail.com --- 1) I removed perl and cpan 2) installed dnf install perl no perl binary to be found, then i installed 3) dnf install perl-core bash: perl: command not found
whats going on?
https://bugzilla.redhat.com/show_bug.cgi?id=1526063
Emmanuel Seyman emmanuel@seyman.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |emmanuel@seyman.fr
--- Comment #2 from Emmanuel Seyman emmanuel@seyman.fr --- what is the output of "rpm -qa | grep perl" (please file this as an attachment if the output is too large)? What is the output of "dnf -y install /usr/bin/perl"?
https://bugzilla.redhat.com/show_bug.cgi?id=1526063
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |NOTABUG Last Closed| |2017-12-15 03:02:27
--- Comment #3 from Petr Pisar ppisar@redhat.com --- (In reply to Donald O. from comment #0)
Description of problem: I can'r run my perl scripts because of module errors. To solve them I tried to re-run my perl cpan script - which fails.
[...]
Can't load '/usr/local/lib64/perl5/auto/Encode/Encode.so' for module Encode: libperl.so.5.24: cannot open shared object file: No such file or directory at /usr/share/perl5/XSLoader.pm line 96. at /usr/local/lib64/perl5/Encode.pm line 10. Compilation failed in require at /usr/bin/cowsay line 18.
Your problem is /usr/local/lib64/perl5/auto/Encode/Encode.so file. This is your local installation for Encode module from CPAN made when have installed Fedora 25 with Perl 5.24. Thus at file was built against libperl.so.5.24 library.
After upgrading to Fedora 26 with Perl 5.26 the libperl.so.5.24 library was replaced with a new and incompatible libperl.so.5.26. But your /usr/local/lib64/perl5/auto/Encode/Encode.so still refers to libperl.so.5.24.
The is known Perl feature that major Perl upgrades like from 5.24 to 5.26 are not binary compatible and thus users have to reinstall modules they had installed from CPAN manually.
The easiest fix is removing all files you installed from CPAN (/usr/local/lib64/perl5 and /usr/local/share/perl5).
https://bugzilla.redhat.com/show_bug.cgi?id=1526063
--- Comment #4 from Donald O. mutiny.mutiny@rediffmail.com --- guess it isn't as easy just replacing Encode.so. There are much more dependencies. Finally I dnf removed the whole perl mash and installed activeperl from perl.com. Thereafter everything is working fine so far.
https://bugzilla.redhat.com/show_bug.cgi?id=1526063
Ralf Corsepius rc040203@freenet.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rc040203@freenet.de
--- Comment #5 from Ralf Corsepius rc040203@freenet.de --- (In reply to Donald O. from comment #4)
guess it isn't as easy just replacing Encode.so. There are much more dependencies.
You need to remove (and possibly rebuild) everything below /usr/local/lib64/perl5 and /usr/local/share/perl5.
Finally I dnf removed the whole perl mash and installed activeperl from perl.com.
Your choice, your poison. I would not want to this. It's only a matter of time until similar issues will hit you again.
Thereafter everything is working fine so far.
It only temporarily appears so, but it surely doesn't.
https://bugzilla.redhat.com/show_bug.cgi?id=1526063
--- Comment #6 from Emmanuel Seyman emmanuel@seyman.fr ---
Finally I dnf removed the whole perl mash and installed activeperl from perl.com.
Out of curiosity, what are you trying to achieve that the system perl doesn't allow you to do?
https://bugzilla.redhat.com/show_bug.cgi?id=1526063
--- Comment #7 from Donald O. mutiny.mutiny@rediffmail.com --- see comment #2
1) I (dnf) removed perl and cpan 2) installed dnf install perl (whole lotta .pm files, but) no perl binary to be found, then i installed 3) dnf install perl-core bash: perl: command not found
whats going on?
( I repeated that with the same effect. no way)
https://bugzilla.redhat.com/show_bug.cgi?id=1526063
--- Comment #8 from Petr Pisar ppisar@redhat.com --- (In reply to Donald O. from comment #7)
see comment #2
- I (dnf) removed perl and cpan
- installed dnf install perl
At this point you should have installed "/usr/bin/perl" file that belongs to "perl-interpreter" package that is required by "perl" package. If not, then something is terribly wrong.
Did the "dnf install perl" terminate successfully? Do you have installed perl-5.26.1-401.fc27.x86_64.rpm and perl-interpreter-5.26.1-401.fc27.x86_64.rpm packages (if your system has x86_64 architecture)? Does /usr/bin/perl file exist? Is the file executable?
You can use "rpm -q perl perl-interpreter" to verify the two packages are installed.
https://bugzilla.redhat.com/show_bug.cgi?id=1526063
--- Comment #9 from Emmanuel Seyman emmanuel@seyman.fr --- (In reply to Donald O. from comment #7)
see comment #2
That comment tells us what you did but not why you did it.
https://bugzilla.redhat.com/show_bug.cgi?id=1526063
--- Comment #10 from Donald O. mutiny.mutiny@rediffmail.com ---
If not, then something is terribly wrong.
so it is. the dnf install terminated successfully. dnf info works, however a dnf repoquery -l <pkg> had no effect on both perl packages, whereas a repoquery on cinnamon for example does what it should do. Thats why I moved to M$ activestate perl, which workes out of the box, and finished my large cpan install {...} perfectly within a couple of minutes.
Guess something basically wrong after two upgrades (from 25->26->27). I also experienced massive virtual memory utilization with the 4.14.5 kernel, therefore I booted 4.14.4 having a tiny 4mb swap file now after 4 hours. However thats a different problem.
https://bugzilla.redhat.com/show_bug.cgi?id=1526063
Donald O. mutiny.mutiny@rediffmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|NOTABUG |WONTFIX
--- Comment #11 from Donald O. mutiny.mutiny@rediffmail.com --- guess its time to close it, as I found a solution working for me. Thank to all!
https://bugzilla.redhat.com/show_bug.cgi?id=1526063
Jitka Plesnikova jplesnik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |msb@vex.net
--- Comment #12 from Jitka Plesnikova jplesnik@redhat.com --- *** Bug 1590973 has been marked as a duplicate of this bug. ***
https://bugzilla.redhat.com/show_bug.cgi?id=1526063
Donald O. mutiny.mutiny@india.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|WONTFIX |EOL
perl-devel@lists.fedoraproject.org