install HTML::TreeBuilder::XPath getting failed

658 Views Asked by At

I am trying to install ** HTML::TreeBuilder::XPath of version 0.13 ** but it gets failed.

Can anyone suggest what could be the cause.

1

There are 1 best solutions below

0
ikegami On

You have a badly installed version of Scalar::Util. (It's might not be your fault; some distros have done this.) Reinstall Scalar::Util first.

$ cpan Scalar::Util

Or if it complains Scalar::Util is up to date.

$ cpan
cpan> force test Scalar::Util
cpan> force install Scalar::Util  # Only do this if the tests were successful!!
cpan> quit