in reply to Weak references error when installing Test::MockObject

You have Scalar::Util installed but it is either not the right version or it does not have the XS parts required for the weaken function to work, you may find this if you have a preinstalled perl for instance. Reinstall Scalar::Util and everything will be fine.

/J\

Replies are listed 'Best First'.
Re^2: Weak references error when installing Test::MockObject
by talexb (Chancellor) on Apr 21, 2006 at 14:44 UTC

    Thanks, that worked fine.

    I'm a little surprised that

    cpan -f -i Scalar::Util
    didn't do what I wanted, so I had to run the CPAN shell
    [root@carbon ~]# cpan cpan shell -- CPAN exploration and modules installation (v1.7601) ReadLine support enabled cpan> force install Scalar::Util ...
    to actually get it to do what I wanted.

    After that, Test::MockObject installed fine. Thanks a bunch!

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds