Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

ActiveState PPM, no Tk present

by beavis01 (Initiate)
on Nov 11, 2011 at 16:14 UTC ( #937606=perlquestion: print w/ replies, xml ) Need Help??
beavis01 has asked for the wisdom of the Perl Monks concerning the following question:

Latest version of ActiveState Perl does not have Tk. "ppm install Tk" reports ppm install failed: Can't find any package that provides Tk I added the Winnapeg archive to PPM, to no good effect. Any advice?

Comment on ActiveState PPM, no Tk present
Replies are listed 'Best First'.
Re: ActiveState PPM, no Tk present
by marto (Bishop) on Nov 11, 2011 at 16:20 UTC

    Try ppm install

      Thanks, got the following error: ppm install failed: The PPD does not provide code to install for this platform Most likely a 64-bit issue.
Re: ActiveState PPM, no Tk present
by zentara (Archbishop) on Nov 11, 2011 at 18:45 UTC
    My advice is ask on the ActiveState Perl's blog, or message board. The Tk ppms are out there, somewhere, for different arch's and platforms. I'm glad I use Linux. :-)

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh
Re: ActiveState PPM, no Tk present
by gri6507 (Deacon) on Nov 11, 2011 at 18:36 UTC
    One of the problems of ActiveState Perl is the fact that they do not have a full build environment to compile CPAN modules locally. That is why ActiveState distributes modules in PPD form. In essence, PPDs are precompiled version of the modules. It works great ... when you don't run into any snags. However, in my experience, modules like Tk can (and often do) cause problems.

    One alternative you can try is to use Straberry Perl ( instead. It comes with its own native (MinGW) build environment all packaged up into a convenient package. If you install that, then you could install Tk in a standard way perl -MCPAN -e "install Tk"

      What you said about Strawberry Perl is true, but the OP doesn't have to move from ActivePerl to Strawberry Perl in order to install from CPAN.

      From the PPM utility, a user can install MinGW and dmake. Once that's done, the user can install modules directly from CPAN by opening a command prompt and typing something like cpan install Tk to install a module even if it needs to be compiled.

      Don't have much experience with Strawberry Perl so I can't speak to whether it's "easier"/"better" than ActivePerl with installing CPAN modules that need to be compiled.

        You are correct that it is possible to install the MinGW environment into ActiveState. For the sake of completeness, to do so, start CMD.EXE and run (assuming ActivePerl is installed in C:\perl)
        c:\perl\bin\ppm install MinGW
        However, this alone is not going to be sufficient. In my experience that a user would then also have to add update their %PATH% environment variable to
        path C:\perl\bin;C:\perl\site\bin;%PATH%
        Then, the user would have to find and install nMake (i.e. into some directory in their %PATH% (i.e. c:\perl\bin). Only then can they use CPAN safely.

        The alternative to that long winded solution is Strawberry Perl, where all of that rigamarole is done automatically for the user. Hence, my suggestion ;-)

        From the PPM utility, a user can install MinGW and dmake

        Yes - but that only works for 32-bit versions of ActivePerl and, from the op's second post in this thread, it seems a 64-bit build of ActivePerl is being used.

        Another alternative is to download, from Microsoft, the same compiler that was used to build the x64 ActivePerl. It's free, and should still be available, though it can be a bit tricky to locate.

Re: ActiveState PPM, no Tk present
by Dumu (Scribe) on Apr 07, 2015 at 08:53 UTC
    I know there's no Tk. But ... there is Tkx instead, which provides a wrapper between Perl and genuine Tcl-Tk.

    Obviously using Tkx will be easier for new development, as there are some minor differences. But porting an existing program to Tkx might not be too taxing.
        Great, I shall try beautiful Perl/Tk for an upcoming project. Thanks!

        I still think Tkx was a good idea, but I've an open mind.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://937606]
Approved by marto
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2016-02-06 21:34 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (236 votes), past polls