in reply to Re^7: Do I have a unicode problem, or is this something else?
in thread Do I have a unicode problem, or is this something else?

You need to install the underlying library (libxml2) first. Your distro's repo should have it. Be sure to install any associated -dev/-devel package. In Debian, the packages are named libxml2 and libxml2-dev.

Replies are listed 'Best First'.
Re^9: Do I have a unicode problem, or is this something else?
by Steve_BZ (Chaplain) on Jun 16, 2010 at 13:47 UTC

    Hi ikegami,

    Thanks for the tip. Even so the install was unexpectedly hard. The cpan module didn't really support the installation so I had to switch between cpan, my linux package manager and make. In the end I did the following:

    • used package manager to install libxml2-dev. libxml2 was already installed.
    • Run perl e Makefile.PL which generated dependency errors
    • used cpan to install XML::NamespaceSupport
    • used cpan to install XML::SAX
    • Ran perl e Makefile.PL without errors
    • make, make test, make install.

    Success, I've just run your code which ran very smoothly. I think your earlier comments about the bugs were correct, so overall it's going to be less maintenance to fix this now.

    Have a great day

    Regards

    Steve

      As a shortcut, if you are in a directory that contains an unpacked distribution, you can automate the hunting of dependencies by typing

      cpan .

        Thanks for this. I hope I'll remember next time I need it. I find I look back over my *own* old posts and discover things that I've forgotten, thinking "I never knew that"!

        Steve