http://www.perlmonks.org?node_id=740580

TomKane has asked for the wisdom of the Perl Monks concerning the following question:

I'm interested in looking at Tk::Zinc, so I downloaded and installed it. I use the ActiveState PPM for the installation on my Windows XP and everything looks good. However, as I tried to run some of the demos I kept getting the following error message:

Tk::Zinc object version 804.028 does not match bootstrap parameter 804.027 at D:/Perl/lib/DynaLoader.pm line 252.

I take it that the .dll was compiled with an extraction from CVS and that it compiled a constant of one of these two numbers for the version/revision -- and that one of them is out of sync.

I realize that this is not an issue for DynaLoader.pm per se, but with the version control. Are there any suggestions? Thanks in advance.

Tom

Replies are listed 'Best First'.
Re: Tk::Zinc Dynaload error
by syphilis (Archbishop) on Feb 01, 2009 at 22:33 UTC
    Tk::Zinc object version 804.028 does not match bootstrap parameter 804.027 at D:/Perl/lib/DynaLoader.pm line 252.

    What does the following produce:
    perl -MTk -le "print $Tk::VERSION"
    If it produces a similar error, then there's something botched with your Tk installation.
    However, I expect it will output 804.027 - which would indicate that you need to upgrade to 804.028, because that was the version of Tk that the Tk-Zinc ppm was (apparently) built against. An alternative solution would be to build Tk-Zinc from source, against your existing build of Tk.

    Cheers,
    Rob
      Yep, I got 804.027, so I'm checking with ActiveState about the latest version. Thanks.
        I'm checking with ActiveState about the latest version

        If you're running a 5.10.0 build of ActivePerl, there should be no trouble. Just ppm remove Tk then ppm install Tk and you should end up with Tk-804.028.

        But, if you're running a 5.8.x build of ActivePerl, then it looks to me that ActiveState provide only 804.027. That being so, you probably need to install Tk from the same repository that gave you the Tk::Zinc ppm. (One would hope that rep provides a ppm of Tk-804.028.)

        Cheers,
        Rob
Re: Tk::Zinc Dynaload error
by Anonymous Monk on Mar 29, 2012 at 14:00 UTC

    I get the very same error even while having Tk 804.029 installed, and it survives all uninstall/reinstall permutations. Easiest fix: comment out line 20 in Tk-Zinc.pm:

    #bootstrap Tk::Zinc $Tk::VERSION;

    That fixes it.