#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    93
    Rep Power
    16

    List::Util error


    The error

    List::Util object version 1.18 does not match bootstrap parameter 1.19

    "Apparently" this is caused by more than one version of Util.pm being installed at the same time. I've install a couple things using yum and a couple using cpan so I'm not sure where the problem originates. That said, how can I get rid of the conflict... is it just a matter of deleting an extra util.pm file or is there more to it?

    Thanks for any insights.
  2. #2
  3. Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Oct 2004
    Location
    Sunny Southern California
    Posts
    2,687
    Rep Power
    866
    Uninstall all of the List::Util modules and then reinstall the latest version. If worse comes to worse you can manually delete the modules and reinstall the latest version.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    93
    Rep Power
    16
    Kevin, thanks for the input.

    How do I remove installed Perl modules?
    http://www.cpan.org/misc/cpan-faq.html#How_delete_Perl_modules

    I haven't tried that yet but I'm sure it'll work. However, I previously attempted to just install:

    cpan -i List::Util

    and it installs here : ./5.8.8/Scalar/Util.pm v1.19

    But the other locations I can find are these:

    ./5.8.8/CGI/Util.pm v1.5
    ./5.8.8/Hash/Util.pm v0.5
    ./5.8.8/List/Util.pm v1.19
    ./5.8.8/Test/Harness/Util.pm v0.01

    No v1.18

    So, my question is how can I target a specific version? Or do I need to? And/or, will deleting them cause other programs to stop running, and if yes how to fix that? I'm dreadfully afraid the cure will be worse than the disease... since everything else seems to work perfectly.

    Thanks again.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    93
    Rep Power
    16
    Update. I had these:

    /usr/lib/perl5/5.8.8/CGI/Util.pm
    /usr/lib/perl5/5.8.8/Hash/Util.pm
    /usr/lib/perl5/5.8.8/List/Util.pm
    /usr/lib/perl5/5.8.8/Scalar/Util.pm
    /usr/lib/perl5/5.8.8/Test/Harness/Util.pm

    renamed all but the one cpan installed to a bogus name. The script wouldn't run without these:

    /usr/lib/perl5/5.8.8/CGI/Util.pm
    /usr/lib/perl5/5.8.8/List/Util.pm

    When I restored those to the proper name, the original error returned. So, I renamed the one cpan installed and the script wouldn't run. Next I copied the version from the List directory into the Scalar directory in the hope it might reconcile version differences, but it did not.


    Fedora core 6.
  8. #5
  9. Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Oct 2004
    Location
    Sunny Southern California
    Posts
    2,687
    Rep Power
    866
    Those are all different modules:

    Hash::Util
    CGI::Util
    etc
    etc

    As far as I know you should only need to uninstall/install List::Util

    You should not change the CGI::Util name or path, otherwise the CGI.pm module may not work.

    My first suggestion of deleting all the Util modules should be ignored as they are not the same module.
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    93
    Rep Power
    16
    Uh oh, using the above noted script, it removed everything

    removing /usr/lib/perl5/5.8.8/List/Util.pm
    removing /usr/lib/perl5/5.8.8/Scalar/Util.pm
    removing /usr/share/man/man3/List::Util.3pm
    removing /usr/share/man/man3/Scalar::Util.3pm
    removing /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/List/Util/.packlist


    Now when I try to install anything, it aborts prematurely - even if I -fi force it

    Alert: While trying to 'dump' YAML file
    '/root/.cpan/build/Scalar-List-Utils-1.19-hLn1Js.yml'
    with 'YAML' the following error was encountered:
    Undefined subroutine &Scalar::Util::blessed called at /usr/lib/perl5/5.8.8/overload.pm line 89.
  12. #7
  13. Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Oct 2004
    Location
    Sunny Southern California
    Posts
    2,687
    Rep Power
    866
    sorry mate, you may need to reinstall perl if nobody else has a better suggestion.
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    93
    Rep Power
    16
    Thanks Kevin, I've been asking around in a few different spots and you've shown the most interest and given the most sensible ideas. I know we don't like to get beaten on these things but I guess sometimes you just have to hunker down and do it the hard way. Thanks again for the feedback.

IMN logo majestic logo threadwatch logo seochat tools logo