Background

using 'sudo cpan' under Ubuntu linux, I installed XUL::Node. The installed version is 0.06 When reading the documentation, it refers to XUL::Node::Event, which is not in the distribution, so I installed that.

It seems (I am not quite sure about this) that x-n-Event is installed with XUL::Node version 0.05. I had to reinstall XUL::Node. I then found POE::Component::XUL and installed that. No problem installing.

I copied the sample code in the documentation directly into a file, but the script would not run. I got an error relating to the apps key Test not being a callback or code ref. (I did not keep a copy of the original error) So I tried cleaning both POE and XUL::Node from my system (deleting all directories and files), and re-installing. Now POE::Component::XUL will not install. I get the following error:

cp lib/POE/XUL/EventManager.pm blib/lib/POE/XUL/EventManager.pm cp lib/POE/XUL/Session.pm blib/lib/POE/XUL/Session.pm cp lib/POE/XUL/SessionManager.pm blib/lib/POE/XUL/SessionManager.pm cp lib/POE/Component/XUL.pm blib/lib/POE/Component/XUL.pm cp lib/POE/XUL/ChangeManager.pm blib/lib/POE/XUL/ChangeManager.pm Manifying blib/man3/POE::Component::XUL.3pm /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" -e" "test_ha +rness(0, 'blib/lib', 'blib/arch')" t/*.t t/00_compile....ok 1/6Can't +locate XUL/Node/State.pm in @INC (@INC contains: /root/.cpan/build/PO +E-Component-XUL-0.02/blib/lib /root/.cpan/build/POE-Component-XUL-0.0 +2/blib/arch /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl +/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/p +erl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.7 /usr/local +/share/perl/5.8.7 .) at /root/.cpan/build/POE-Component-XUL-0.02/blib +/lib/POE/XUL/ChangeManager.pm line 8. snip
Conclusion: XUL::Node::State is associated with version 0.05 but not version 0.06.

Question: was that a packaging mistake or part of a redesign? How do I get POE::Component::XUL to work?


In reply to How do I get POE::Component::XUL to work with XUL::Node v. 0.06? by RHainsworth

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.