Re: ActiveState PPM, no Tk present
by marto (Cardinal) on Nov 11, 2011 at 16:20 UTC
|
| [reply] [d/l] |
|
|
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.
| [reply] |
|
|
| [reply] |
|
|
Re: ActiveState PPM, no Tk present
by zentara (Cardinal) 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. :-)
| [reply] |
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" | [reply] [d/l] |
|
|
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.
| [reply] [d/l] |
|
|
| [reply] [d/l] [select] |
|
|
|
|
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
| [reply] |
Re: ActiveState PPM, no Tk present
by Dumu (Monk) 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. | [reply] |
|
|
| [reply] |
|
|
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.
| [reply] |
|
|
|
|
|