get_iplayer forums

Obsolete macOS XML::LibXML is too old for 3.00 - Printable Version

+- get_iplayer forums (https://forums.squarepenguin.co.uk)
+-- Forum: macOS Forums (https://forums.squarepenguin.co.uk/forum-9.html)
+--- Forum: macOS Troubleshooting (https://forums.squarepenguin.co.uk/forum-12.html)
+---- Thread: Obsolete macOS XML::LibXML is too old for 3.00 (https://forums.squarepenguin.co.uk/thread-1351.html)



Obsolete macOS XML::LibXML is too old for 3.00 - iplayerbloke - 03-05-2017

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)


RE: 3.00 reference issues - dinky - 03-05-2017

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.


RE: 3.00 reference issues - iplayerbloke - 03-05-2017

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|


RE: 3.00 reference issues - dinky - 03-05-2017

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.


RE: RHEL 6 XML::LibXML is too old for 3.00 - iplayerbloke - 04-05-2017

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.


RE: Obsolete macOS XML::LibXML is too old for 3.00 - dinky - 04-05-2017

Bit of edit fail there. Docs repaired to match Linux/BSD instructions.


RE: Obsolete macOS XML::LibXML is too old for 3.00 - iplayerbloke - 04-05-2017

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!