Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

help with WebService::YouTube

by downer (Monk)
on Nov 28, 2007 at 18:19 UTC ( [id://653616]=perlquestion: print w/replies, xml ) Need Help??

downer has asked for the wisdom of the Perl Monks concerning the following question:

I am having trouble installing WebService::YouTube. I have installed the package with cpan, and it had many, many dependencies that were required. I try this simple example to test the package:
my $youtube = WebService::YouTube->new(); my @videos = $youtube->feeds->recently_added;
i get the following error: Can't locate object method "new" via package "XML::LibXML::SAX" at /usr/lib/perl5/vendor_perl/5.8.5/XML/SAX/ParserFactory.pm line 43.

I am trying to get a feed of all recently added videos on youtube. I cant figure whats going wrong. please help!

Replies are listed 'Best First'.
Re: help with WebService::YouTube
by saberworks (Curate) on Nov 28, 2007 at 18:28 UTC
    Sounds like you need to install XML::LibXML::SAX. Sometimes modules you install don't have all the dependencies properly laid out and you have to do it manually.

    XML::LibXML::SAX
      it seems you are correct with your diagnosis. I get the following error when trying to install that package: The installed version of libxml2 not compatible with XML::LibXML.
        In the XML::LibXML documentation, in the README file, it says:
        XML::LibXML requires at least libxml2 2.6.16 to compile and pass all tests and at least 2.6.21 is required for XML::LibXML::Reader. For some older OS versions this means that an update of the pre-built packages is required.
        What version of libxml2 do you have? The documentation recommends using xmllint but I don't know what that is, so I found my version like this:
        lozier:~$ xml2-config Usage: xml2-config [OPTION] Known values for OPTION are: --prefix=DIR change libxml prefix --exec-prefix=DIR change libxml exec prefix --libs print library linking information --cflags print pre-processor and compiler flags --modules module support enabled --help display this help and exit --version output version information lozier:~$ xml2-config --version 2.6.23 lozier:~$

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://653616]
Approved by saberworks
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found