Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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
Re: ActiveState PPM, no Tk present
by marto (Chancellor) on Nov 11, 2011 at 16:20 UTC

    Try ppm install http://www.bribes.org/perl/ppm/Tk.ppd.

      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 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 (http://strawberryperl.com/) 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. http://download.microsoft.com/download/vc15/patch/1.52/w95/en-us/nmake15.exe) 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.

        Cheers,
        Rob
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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2014-07-29 03:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (211 votes), past polls