Obsolete macOS XML::LibXML is too old for 3.00
#1
Same issue here.

Tried updating XML::LibXML Perl module with the following, but no change.

curl -L "http://cpanmin.us" | perl - -l ~/perl5 XML::LibXML local::lib

'tv.cache' file contains the correct text - programme titles, etc - but in Terminal appear as follows:

3885: XML::LibXML::Text=SCALAR(0x7fdb954a1508) - XML::LibXML::Text=SCALAR(0x7fdb954a3998), S4C, p04yzw23

Any help greatly appreciated, dinky :)

FWIW, following two errors in build.log for  =XML::LibXML

Cannot write to /System/Library/Perl/Extras/5.12/XML/SAX/ParserDetails.ini: Permission denied at /System/Library/Perl/Extras/5.12/XML/SAX.pm line 191.
make: [install_sax_driver] Error 13 (ignored)
Cannot write to /System/Library/Perl/Extras/5.12/XML/SAX/ParserDetails.ini: Permission denied at /System/Library/Perl/Extras/5.12/XML/SAX.pm line 191.
make: [install_sax_driver] Error 13 (ignored)
#2
I guess I wouldn't be confident it installed properly. What do you get from:

Code:
perl -MXML::LibXML -e 'print $XML::LibXML::VERSION'

Also post that line for index 3885 in your tv.cache file. Take it out with a text editor, not from the console.
#3
I think you're right. Version came back as 1.88, though the build log says:

Successfully installed XML-LibXML-2.0129 (upgraded from 1.88)

Perhaps I need an extra step?

Here's line 3885 from the tv.cache file.

3885|tv|XML::LibXML::Text=SCALAR(0x7fdb954a1508)|p04yzw23|2017-05-02T22:30:00+01:00|1496352600|XML::LibXML::Text=SCALAR(0x7fdb954a3998)|||default|3900|Rhaglen arbennig yn dilyn taith Steff Tywydd a Daf Wyn i Base Camp Everest. A special p...|S4C|||1493836361||http://www.bbc.co.uk/programmes/p04yzw23|
#4
I think you need to get local::lib set up with cpanminus first, then set environment vars for local::lib, and then install XML::LibXML with cpanm. Follow the instructions in get_iplayer install docs.
#5
Sorted!

Wrong bash config file.

echo 'eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`' >> ~/.bashrc

should be:

echo 'eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`' >> ~/.bash_profile

Maybe worth updating the guide.
#6
Bit of edit fail there. Docs repaired to match Linux/BSD instructions.
#7
Thanks, dinky. You're a superstar!!

For ex-Get iPlayer Automator Mac users like me, it may be worth adding to the macOS guide that the Xcode Command Line Tools (Xcode > Prefs > Downloads > Command Line Tools) need to be installed before attempting a manual installation. Took me a while to work that out when cpanminus failed to compile due to no 'make' command.

All working OK now for me on 2012 Mac Pro with Mountain Lion 10.8.5.

Happy days!


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't locate XML/LibXML.pm in @INC with unsupported Perl nicka 2 2,472 10-09-2018, 08:42 PM
Last Post: nicka
  Cache won't refresh with obsolete get_iplayer < 3.13 tinydemon 1 2,971 05-04-2018, 01:54 PM
Last Post: dinky