in reply to Re^8: cURL And XML breaking the install of a previosuly fine script
in thread cURL And XML breaking the install of a previosuly fine script

(This is a continuation of this thread) I have a script I've been using to pull down podcasts for several years, and I've just gotten a new computer and I'm having difficulty getting it to work again. I went from Ubuntu 14.04 with perl 5.18 to Ubuntu 17.04 with perl 5.24. I think the only problem I have remaining is that XML::RSS doesn't seem to want to run. cpan says it's installed and up to date, but when the script runs, it outputs:
$ ./scripts/podcasts/podcasts.pl Use of uninitialized value in subroutine entry at /usr/local/share/per +l/5.24.1/Role/Tiny.pm line 461. Can't call method "_attrs" on an undefined value at /usr/local/share/p +erl/5.24.1/Specio/OO.pm line 168. Compilation failed in require at /usr/local/share/perl/5.24.1/Specio/D +eclare.pm line 11. BEGIN failed--compilation aborted at /usr/local/share/perl/5.24.1/Spec +io/Declare.pm line 11. Compilation failed in require at /usr/local/lib/x86_64-linux-gnu/perl/ +5.24.1/DateTime/Types.pm line 12. BEGIN failed--compilation aborted at /usr/local/lib/x86_64-linux-gnu/p +erl/5.24.1/DateTime/Types.pm line 12. Compilation failed in require at /usr/local/lib/x86_64-linux-gnu/perl/ +5.24.1/DateTime/Duration.pm line 12. BEGIN failed--compilation aborted at /usr/local/lib/x86_64-linux-gnu/p +erl/5.24.1/DateTime/Duration.pm line 12. Compilation failed in require at /usr/local/lib/x86_64-linux-gnu/perl/ +5.24.1/DateTime.pm line 14. BEGIN failed--compilation aborted at /usr/local/lib/x86_64-linux-gnu/p +erl/5.24.1/DateTime.pm line 14. Compilation failed in require at /usr/local/share/perl/5.24.1/DateTime +/Format/Mail.pm line 7. BEGIN failed--compilation aborted at /usr/local/share/perl/5.24.1/Date +Time/Format/Mail.pm line 7. Compilation failed in require at /usr/local/share/perl/5.24.1/XML/RSS/ +Private/Output/Base.pm line 9. BEGIN failed--compilation aborted at /usr/local/share/perl/5.24.1/XML/ +RSS/Private/Output/Base.pm line 9. Compilation failed in require at /usr/local/share/perl/5.24.1/XML/RSS. +pm line 9. BEGIN failed--compilation aborted at /usr/local/share/perl/5.24.1/XML/ +RSS.pm line 9. Compilation failed in require at ./scripts/podcasts/podcasts.pl line 1 +8. BEGIN failed--compilation aborted at ./scripts/podcasts/podcasts.pl li +ne 18.

Line 18, referenced there at the end is:

use XML::RSS;

I've searched online and not found anything that looks like this, and I don't know where to go from here. Does anyone have any ideas?

I've tried using XML::FEED::PARSER::LITE, but it doesn't seem to do what I need, but in principle I have no objections to using another module if you can recommend one

Replies are listed 'Best First'.
Re: Can't get XML::RSS working on a new computer
by FreeBeerReekingMonk (Deacon) on Apr 21, 2017 at 21:17 UTC
    You said you upgraded, and are not using perlbrew anymore. How about renaming ~/perl5 to ~/perl5.OLD (this is the directory where cpan puts everything), then try to install cpan modules again? This re-installs many modules but all to their newest versions. I had problems in the past because the libraries were not latest-greatest (alternative is upgrading all your modules, there are some oneliners out there to do that or packages like cpan-outdated which lists them).