Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Unable to install Tk module on Win7

by slugger415 (Scribe)
on Feb 05, 2013 at 15:00 UTC ( #1017200=perlquestion: print w/replies, xml ) Need Help??
slugger415 has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks, I apologize for continuing to harp on this question; I've posted a similar question here as Where is Perl/Tk? is offline?, got many suggestions but none have panned out.

The situation:

  • I wrote a perl script several years ago with the Tk module.
  • My users use ActiveState Perl on Win7, and that repository no longer carries the module.
  • For a while I was able to refer users to the repository, but that seems to be down. The command used to install:
    ppm install
  • I can see the module on cpan, but don't know how to install it on win7. Yes I've read the instructions, but always get things like:
    c:\> cpan App::cpanminus ... lots of messages... c:\> cpan Tk ... lots of messages... Writing Makefile for Tk 'nmake' is not recognized as an internal or external command, operable program or batch file. SREZIC/Tk-804.030.tar.gz nmake -- NOT OK CPAN: YAML::XS loaded ok (v0.35) Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible
  • When I run ppm repo I see the following (I've disabled bribes as it hangs):
    id pkgs name
    1 16730 ActiveState Package Repository
    2 0 cpan
    3 n/a bribes
    4 13 wxperl
    So it looks like cpan is showing zero packages.
  • Tk does not appear in the user's list if they run the ppm gui.
  • There have been suggestions to migrate to Tkx but that seems like it would be many days of recoding and retesting with an unfamiliar module. (It's a pretty complicated script.)

I can download the module from cpan Tk-804.030.tar.gz but don't know how to install it on windows. Is there a 'ppm' command I can use on that gz file, locally?

I can't ask my users to install something like cygwin; I'd prefer to have tum run it from the basic win7 command line.

Sorry if this all sounds lame, but can anyone help me through this?

thanks, Scott

Replies are listed 'Best First'.
Re: Unable to install Tk module on Win7
by marto (Archbishop) on Feb 05, 2013 at 15:10 UTC

    As discussed in your previous thread you need to setup the appropriate tools to install via cpan Tk. You could switch to Strawberry Perl from ActiveState (since you can't find either the module nor build tools packaged), again we've discussed that previously. Have you considered packaging your app so that end users don't have to install modules? See PAR/pp

      Thanks, I think Strawberry works better. I will also look into packaging, that's a good suggestion. Cheers, Scott
Re: Unable to install Tk module on Win7
by Anonymous Monk on Feb 05, 2013 at 15:06 UTC

    I can't ask my users to install something like cygwin; I'd prefer to have tum run it from the basic win7 command line.

    Use and give them some slugger.exe and slug.exe to run

    Use and give them CitrusSlugger Perl with pre-packaged Tk

      Hey citrus perl looks really great, but unfortunately there's no download on SourceForge (though there is a page saying there is one called citrusperl-standard-51601-linux-x86-017.tar.gz).

      The binary that is there seems to contain something else, and none of the batch files in its ./bin work.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1017200]
Approved by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2018-06-21 15:16 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (118 votes). Check out past polls.